PL/SQL查看表结构:,
新建command Windows -->命令模式-->输入desc tablename 得到表结构数据
查询表中所有索引变量:
select * from user_indexes
查询表中所有索引数据列:
select * from user_ind_columns
查询指定表中的索引列:
select * from user_ind_columns where table_name = upper(table_test_log);
查询数据表的表名,表空间,是否为临时表:
select table_name,tablespace_name,temporary from user_tables;
查询数据表的列名:
select * from user_tab_columns where table_name = upper('table_test_log');
输出固定格式的数据列名
select 'for_test_log'||'.'||lower(column_name) as Column from user_tab_columns where table_name =upper('table_test_log');