spig
spig

Reputation: 1715

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?

Upvotes: 6

Views: 19058

Answers (2)

Vincent Malgrat
Vincent Malgrat

Reputation: 67802

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

Upvotes: 10

Ot&#225;vio D&#233;cio
Ot&#225;vio D&#233;cio

Reputation: 74310

Use DESCRIBE table.

Upvotes: 14

Related Questions