博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle查询当前用户下的所有表、表对应的所有表字段、表的主键字段名称
阅读量:7102 次
发布时间:2019-06-28

本文共 387 字,大约阅读时间需要 1 分钟。

hot3.png

#查询当前用户库中的所有表select t.table_name from user_tables t#查询指定表中的所有字段select t.column_name from user_col_comments t where t.table_name = 'EX_YY_ZJJ_01_FRKJCSJ';#查询指定表的主键名称select column_name from user_cons_columns u,user_constraints cwhere u.table_name = 'EX_YY_ZJJ_01_FRKJCSJ' and u.constraint_name = c.index_name and c.constraint_type ='P';

 

转载于:https://my.oschina.net/zhangmaoyuan/blog/1841312

你可能感兴趣的文章
Spring Cloud Alibaba迁移指南(二):零代码替换 Eureka
查看>>
Visual Paradigm 教程[UML]:如何绘制封装图?(下)
查看>>
初探AngularJS6.x---目录结构说明
查看>>
kafka解决了什么问题?
查看>>
android流式布局、待办事项应用、贝塞尔曲线、MVP+Rxjava+Retrofit、艺术图片应用等源码...
查看>>
ppwjs之bootstrap文字排版:<pre>元素 [scroll](预格式元素 [带滚动条)
查看>>
Spring经典的面试题,你值得拥有!
查看>>
Ember.js 属性值模糊查询
查看>>
squid配置
查看>>
OSChina 周三乱弹 —— 生活要懂得苦中作乐
查看>>
前端那些事之react--redux篇
查看>>
Ubuntu 16.04 U盘安装过程
查看>>
UIApplication、AppDelegate、委托
查看>>
hadoop单机安装
查看>>
Android实用笔记——使用GridView以表格的形式显示多张图片
查看>>
内部类使用外部类的成员属性
查看>>
基于const的重载
查看>>
虹软AI 人脸识别SDK接入 — 性能优化篇(多线程)
查看>>
Spark examples 源码解析 (Spark SQL)
查看>>
无线路由器软件开发面试-曙光
查看>>