首页 > 代码库 > oracle常用命令
oracle常用命令
- 表信息:
1 SELECT tabCols.COLUMN_NAME AS "Field", 2 tabCols.DATA_TYPE || ‘(‘ || tabCols.DATA_LENGTH || ‘)‘ AS "Type", 3 cons.constraint_type as "Key", 4 tabCols.NULLABLE AS "Null", 5 colcomments.comments AS "Comment" 6 FROM USER_TAB_COLS tabCols 7 inner JOIN user_col_comments colcomments 8 ON colcomments.TABLE_NAME = tabCols.TABLE_NAME 9 AND colcomments.COLUMN_NAME = tabCols.COLUMN_NAME10 left JOIN user_cons_columns conscols11 on conscols.TABLE_NAME = tabCols.TABLE_NAME12 AND conscols.COLUMN_NAME = tabCols.COLUMN_NAME13 left join user_constraints cons14 ON cons.constraint_name = conscols.constraint_name15 where tabCols.TABLE_NAME = ‘TBTEST‘
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。