开发者

How do I show fields in a table in oracle?

In mysql I can 开发者_如何学运维write

show fields from <table>;

What is the closest equivalent in Oracle SQL?


Use DESCRIBE table.


In Oracle you can query the dictionary views to get info on the schema objects, for instance:

SELECT * FROM all_tab_columns WHERE table_name = 'MY_TABLE';

alternatively in SQL*Plus you could use the DESCRIBE command:

DESC my_table
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜