ORACLE 导出表结构及备注

https://blog.csdn.net/u013303551/article/details/52354230

SELECT t.table_name,
       t.colUMN_NAME,
       t.DATA_TYPE || '(' || t.DATA_LENGTH || ')',
       t1.COMMENTS
  FROM User_Tab_Cols t, User_Col_Comments t1
WHERE t.table_name = t1.table_name
    AND t.column_name = t1.column_name;

posted @ 2019-06-20 08:29  迷神图卷  阅读(525)  评论(0编辑  收藏  举报