搞了一天.可能有更好的方法.
測試環境: oracle xe 11g
1 顯示全部表名:
select table_name from user_tables;
2 顯示全部列名:
select OWNER, TABLE_NAME, COLUMN_NAME
from all_tab_columns
where table_name = atablename;
附:
-- Example: create temporary table. http://stackoverflow.com/questions/2671518/how-to-create-a-temporary-table-in-oracle
CREATE GLOBAL TEMPORARY TABLE Table_name
(startdate DATE,
enddate DATE,
class CHAR(20))
ON COMMIT DELETE ROWS; oracle