tags:

views:

106

answers:

2

In mysql I can write

show fields from <table>;

What is the closest equivalent in Oracle SQL?

+7  A: 

Use DESCRIBE table.

Otávio Décio
You can also use DESCRIBE or DESC in mySQL too.
Tenner
+3  A: 

Hi spig,

in Oracle you will query the dictionary views to get info on the schema objects:

SELECT * FROM all_tables WHERE table_name = 'MY_TABLE';

alternatively in SQL*Plus you could:

DESC my_table
Vincent Malgrat