oracle数据库查询某个表的字段信息

(1)查询整个数据库所有表的字段

select t.column_name from user_col_comments t;(一般建议去执行,因为数据库表过多执行起来会非常的慢)

(2)查询特定表名的表字段

select t.column_name, t.column_name  from user_col_comments t where t.table_name = '所要查询字段的表名';

(3)查询数据库所有的表名

select t.table_name from user_tables t;

猜你喜欢

转载自blog.csdn.net/qq_27632921/article/details/82683089