Oracle 通过SQL查询表中都有哪些字段

select column_name from user_col_comments where table_name = '{表名}';

select column_name from user_col_comments where table_name = 'FRIEND';

注:

  1. 表名区分大小写
  2. 只能查询当前连接的用户的表
posted @ 2022-04-14 13:19  君子键  阅读(60)  评论(0)    收藏  举报