Oracle cheat sheet
List tables
You should set the column width
COL table_name FORMAT a30;
COL table_type FORMAT a30;
Show the tables
SELECT * FROM cat;
imple table with primary key
CREATE TABLE test (keydate smallint NOT NULL, PRIMARY KEY (keydate));
Show schema of a table
desc advert_date;
set autotrace traceonly explain