获取某用户下所有的表名:
select table_name
from user_tables
order by table_name;
获取某用户下某个表的所有列名 where 语句中TABLE_NAME="表名" 表名必需大写:
select column_name
from user_tab_columns
where Table_Name = ‘EMP‘
order by column_name;
原文地址:https://www.cnblogs.com/xsdf/p/8251426.html
时间: 2024-10-10 15:28:48