分享

常用sql

 昵称5190801 2011-01-02
/**取得dyzc用户的所有数据库表名、备注*/
select t.table_name as tablename, t1.comments as comments from all_tables t, all_tab_comments t where t1.table_name=
t.table_name and t.owner = 'DYZC' and t1.owner = 'DYZC' order by comments ASC;
/**取得某个表(TABLE1)的所有英文列名、中文注释*/
select t.table_name as tablename, t.column_name as columnname, t.comments as comments, t1.DATA_TYPE as type from
user_col_comments t, user_tab_columns t1  where t.table_name = t1.TABLE_NAME  and t.column_name =t1.COLUMN_NAME  and
t.table_name = 'TABLE1'

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多