What is the syntax to view structure of table?

From SQLZOO
Revision as of 10:57, 18 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= 'BBC'
SELECT * FROM all_tab_columns
 WHERE TABLE_NAME='BBC'
sp_columns @TABLE_NAME=bbc
SHOW COLUMNS FROM bbc
SQL
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense