Oracle 看出表结构与属性、表空间设计

1、Oracle 查看表空间

SELECT b.comments as 注释,
       a.column_name as 列名,
       a.data_type || '(' || a.data_length || ')' as 数据类型,
       a.nullable as 是否为空
  FROM user_tab_columns a, user_col_comments b
 WHERE a.TABLE_NAME = 'OA_W_YONGKUANMINGXI_TERMINAL' --表名
   and b.table_name = 'OA_W_YONGKUANMINGXI_TERMINAL' --表名
   and a.column_name = b.column_name

  

posted @ 2019-09-26 13:20  洺剑残虹  阅读(836)  评论(0编辑  收藏  举报