博客
关于我
Oracle获取表字段名,字段类型,字段长度,注释
阅读量:439 次
发布时间:2019-03-06

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

SELECT b.comments as 注释,       a.column_name as 列名,       a.data_type || '(' || a.data_length || ')' as 数据类型,       a.nullable as 是否为空  FROM user_tab_columns a, user_col_comments b WHERE a.TABLE_NAME = '表名'   and b.table_name = '表名'   and a.column_name = b.column_name

 

转载地址:http://xmuyz.baihongyu.com/

你可能感兴趣的文章
nginx + etcd 动态负载均衡实践(一)—— 组件介绍
查看>>
nginx + etcd 动态负载均衡实践(三)—— 基于nginx-upsync-module实现
查看>>
nginx + etcd 动态负载均衡实践(二)—— 组件安装
查看>>
nginx + etcd 动态负载均衡实践(四)—— 基于confd实现
查看>>
Nginx + Spring Boot 实现负载均衡
查看>>