Oracle: check the structure of a table

Oracle: check the structure of a table named test_table,  just using the follwoing command:

 

describe test_table;

 

the output has 3 columns:

 

the first column displays the column name of table dual;

 

the second column displays whether this column can be null;

 

the third column displays the Data Type of the column. 

 

E.g:

 

Check the structure of dual table:

 

describe dual;

 

The output is:

 

describe dual
Name  Null Type       
----- ---- -----------
DUMMY      VARCHAR2(1)  

 

This indicate that dual table has only one column named DUMMY, it can be null, and the type of column DUMMY is VARCHAR2(1).

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章