SQL:select column_name,data_type from all_tab_columns where table_name=upper('table_name');
执行:
SQL> column column_name format a30; SQL> column data_type format a30; SQL> select column_name,data_type from all_tab_columns where table_name=upper('gpcc_disk_history'); COLUMN_NAME DATA_TYPE ------------------------------ ------------------------------ ID NUMBER HOSTNAME NVARCHAR2 DISKSIZE NUMBER USED NUMBER CTIME DATE
END