What is the syntax to view structure of table?

From SQLZOO
Revision as of 12:38, 17 July 2012 by Connor (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What is the syntax to view structure of table?

schema:gisq

What is the syntax to view structure of table?

 
SELECT * FROM syscat.COLUMNS
WHERE tabname= 'CIA'
SELECT * FROM all_tab_columns
 WHERE TABLE_NAME='CIA'
sp_columns @TABLE_NAME=cia
SHOW COLUMNS FROM gisq.cia
SQL
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense