Mysql
DESC 表名;
SHOW COLUMNS FROM 表名;
DESCRIBE 表名;
Oracle
SELECT table_name, column_name, data_type FROM all_tab_cols WHERE table_name = '表名' ;
干货总是那么简单.
DESC 表名;
SHOW COLUMNS FROM 表名;
DESCRIBE 表名;
SELECT table_name, column_name, data_type FROM all_tab_cols WHERE table_name = '表名' ;
干货总是那么简单.