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 @ 2018-03-29 13:28  临时工~  阅读(2079)  评论(0编辑  收藏  举报