Home > Database > Mysql Tutorial > body text

Oracle 查询字段详细信息

WBOY
Release: 2016-06-07 16:48:54
Original
1409 people have browsed it

Oracle 中查询字段详细信息的sql 语句,包含了表名,字段名,类型,长度,是否为空,列序号和字段的备注信息。

Oracle 中查询字段详细信息的sql 语句,包含了表名,字段名,,类型,长度,是否为空,列序号和字段的备注信息。

SELECT USER_TAB_COLS.TABLE_NAME as 表名,

USER_TAB_COLS.COLUMN_NAME as 列名 ,

USER_TAB_COLS.DATA_TYPE as 数据类型,

USER_TAB_COLS.DATA_LENGTH as 长度,

USER_TAB_COLS.NULLABLE as 是否为空,

USER_TAB_COLS.COLUMN_ID as 列序号,

user_col_comments.comments as 备注

FROM USER_TAB_COLS

inner join user_col_comments on

user_col_comments.TABLE_NAME=USER_TAB_COLS.TABLE_NAME

and user_col_comments.COLUMN_NAME=USER_TAB_COLS.COLUMN_NAME

where  USER_TAB_COLS.Table_Name='表名'

Linux-6-64下安装Oracle 12C笔记

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

本文永久更新链接地址:

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template