sqlplus 格式化一例
生活随笔
收集整理的這篇文章主要介紹了
sqlplus 格式化一例
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
對字符型,用axx格式,對數字型,用9999 格式(999表示占用3列)
SQL> col 'ts#' format 999
SQL> col 'file#' format 999
SQL> col 'name' format a50
SQL> select ts#,file#,name from v$datafile;
?TS# FILE# NAME
---- ----- --------------------------------------------------
?? 0???? 1 /u01/app/oracle/oradata/orcl/system01.dbf
?? 1???? 2 /u01/app/oracle/oradata/orcl/sysaux01.dbf
?? 2???? 3 /u01/app/oracle/oradata/orcl/undotbs01.dbf
?? 4???? 4 /u01/app/oracle/oradata/orcl/users01.dbf
?? 6???? 5 /u01/app/oracle/oradata/orcl/example01.dbf
SQL>
本文轉自健哥的數據花園博客園博客,原文鏈接:http://www.cnblogs.com/gaojian/p/3612829.html,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的sqlplus 格式化一例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C# 生成 MongoDB 中的 Obj
- 下一篇: 40.Node.js Web 模块