使用SQL查询Oracle一个命名空间下所有表和视图的表名、字段名、字段类型、字段大小,是否可为NULL,主键和注释信息。 SQL如下,注意需要将'CDFLOOD'更换为您要查询的命名空间: 查询结果如下(值中,'Y'表示是,'N'表示否): ...
查询表的所有列及其属性:select t. ,c.COMMENTS from user tab columns t,user col comments c where t.table name c.table name and t.column name c.column name and t.table name women 查找表的主键:select cu. from user cons co ...
2014-10-29 11:46 0 8749 推荐指数:
使用SQL查询Oracle一个命名空间下所有表和视图的表名、字段名、字段类型、字段大小,是否可为NULL,主键和注释信息。 SQL如下,注意需要将'CDFLOOD'更换为您要查询的命名空间: 查询结果如下(值中,'Y'表示是,'N'表示否): ...
select table_name from user_tab_columns where column_name = '字段名'; 查询不出来注意: 1.大小写 2.对象类型 使用user_objects或者user_segments查看类型 3.用户权限 需要创建的用户 ...
select table_name from user_tab_columns where column_name = '字段名'; 这是网上查到的,地址如下:http://blog.163.com/pei_hua100/blog/static/80569759201272114619283 ...
--oracle查看该用户的所有表名字、表注释、字段名、字段注释、是否为空、字段类型select distinct TABLE_COLUMN.*, TABLE_NALLABLE.DATA_TYPE ...
来源于网上整理 总结了一下oracle中查询表的信息,包括表名,字段名,字段类型,主键,外键唯一性约束信息,索引信息查询SQL如下,希望对大家有所帮助:1、查询出所有的用户表select * from user_tables 可以查询出所有的用户表select owner ...
--创建用户create user "用户名" identitied by "密码";--给自己修改密码 查询所有表名:select t.table_name from user_tables t;查询所有字段名:select t.column_name from ...
查询所有表名:select t.table_name from user_tables t;查询所有字段名:select t.column_name from user_col_comments t;查询指定表的所有字段名:select t.column_name from ...