日期:2014-05-17 浏览次数:20930 次
SQL> desc emp Name Null? Type ----------------------------------------------------- -------- ------------------- EMPNO NOT NULL NUMBER(4) ENAME VARCHAR2(10) JOB VARCHAR2(9) MGR NUMBER(4) HIREDATE DATE SAL NUMBER(7,2) COMM NUMBER(7,2) DEPTNO NUMBER(2) SQL> select TABLE_NAME,COLUMN_NAME,DATA_TYPE,DATA_LENGTH,DATA_PRECISION,DATA_SCALE from user_tab_col s where table_name = 'EMP'; TABLE_NAME COLUMN_NAME DATA_TYPE DATA_LENGTH DATA_PRECISION DATA_SCALE --------------- ------------------------------ --------------- ----------- -------------- ---------- EMP EMPNO NUMBER 22 4 0 EMP ENAME VARCHAR2 10 EMP JOB VARCHAR2 9 EMP MGR NUMBER 22 4 0 EMP HIREDATE DATE 7 EMP SAL NUMBER 22 7 2 EMP COMM NUMBER 22 7 2 EMP DEPTNO NUMBER 22 2 0 8 rows selected.