1 Oracle显示所有表名:
select table_name from user_tables;
2 Oracle显示所有列名:
select OWNER, TABLE_NAME, COLUMN_NAME
from all_tab_columns
where table_name = atablename;
附:
Oracle创建临时表
CREATE GLOBAL TEMPORARY TABLE Table_name
(startdate DATE,
enddate DATE,
class CHAR(20))
ON COMMIT DELETE ROWS;
当前位置: 数据库>oracle
Oracle列出数据库所有表名和列名
来源: 互联网 发布时间:2017-05-22
本文导语: 1 Oracle显示所有表名: select table_name from user_tables; 2 Oracle显示所有列名: select OWNER, TABLE_NAME, COLUMN_NAME from all_tab_columns where table_name = atablename; 附:Oracle创建临时表 CREATE GLOBAL TEMPORARY TABLE Table_name (startdate DATE, enddate DATE...