77问答网
所有问题
当前搜索:
dba_col_comments
查找将oracle数据库中没有标注注释的字段查找出来,最好能带上所在的表...
答:
Select * from
DBA_COL_COMMENTS
WHERE COMMENTS IS NULL
oracle 怎样查询某用户下的所有表的表名
答:
select * from all_tab_comments -- 查询所有用户的表,视图等。select * from user_tab_comments -- 查询本用户的表,视图等。select * from all_
col_comments
--查询所有用户的表的列名和注释。select * from user_col_comments -- 查询本用户的表的列名和注释。select * from all_tab_column...
在oracle数据库中,如何获得任意一张表的第一个字段,这个select语句该怎 ...
答:
Oracle 中
cols
系统表中是存放表的字段信息的,TABLE_NAME字段是当前的表名,COLUMN_NAME是当前的字段名,column_id是第一个字段,1自然是你想要的结果了,还有就是表名一定要输入大写的!
如何找到数据库中为时间格式的字段名?sql语句?
答:
1、在oracle中,这样写就可以解决了 select column_name,table_name from user_tab_
col
umns where column_name= 'test_name'2、在sqlserver中,这样写就可以解决了 select column_name,table_name from information_schema.columns where column_name='test_name'【条件中一定要注意大小写,希望可以帮...
如何将oracle表中的字段类型、字段注释说明、字段名一起查询出来_百度...
答:
SELECT b.column_name column_name -字段名 ,b.data_type data_type -字段类型 ,b.data_length -字段长度 ,a.
comments
comments -字段注释 FROM user_col_comments a ,all_tab_columns b WHERE a.table_name = b.table_name and a.table_name = 'table_name';...
如何查询oracle中所有的schema名以及各个schema下的所有表名
答:
如果是用该用户登录使用以下语句:SELECT * FROM USER_TABLES;如果是用其他用户(在
dba
权限下):SELECT * FROM ALL_TABLES WHERE OWNER='USER_NAME'
oracle查看所有表及各表行数
答:
在Oracle数据库中,查看所有表及对应个表的行数,只用一个select语句查询table_name和num_rows两个字段即可。table_name是表名,num_rows代表表的行数。具体如下:1、查询数据库所有的表sql:select t.table_name,t.num_rows from all_tables t;sql执行后的输出结果如下图:2、查询当前用户表sql...
oracle 如何导出数据字典
答:
A.NULLABLE AS 能否为空,B.comments AS 备注 FROM sys.all_tab_columns A,sys.
DBA_COL_COMMENTS
B WHERE A.owner=B.owner AND A.table_name=B.table_name AND A.COLUMN_NAME=B.COLUMN_NAME AND A.owner='guoqiang' AND A.TABLE_NAME IN ('TB_SUBJECT', 'TB_SUBJECT_BALANCE', 'TB_...
oracle判断表是否存在字段
答:
方法一:可以用user_tab_
cols
表进行查询,查询有结果表示字段存在:sql:select * from user_tab_cols where table_name='T_AAA' and column_name='
COL
_BBB';方法二:也可以用all_tab_columns表进行查询,查询有结果表示字段存在:sql:select * from all_tab_columns where owner='SYS_CCC' an...
Oracle中怎样查看所有的表,列,属性,主键等信息
答:
所以主键也会在all_indexes里面。具体需要的字段可以DESC下这几个view,
dba
登陆的话可以把all换成dba 1、查找表的所有索引(包括索引名,类型,构成列):select t.*,i.index_type from user_ind_
col
umns t,user_indexes i where t.index_name = i.index_name and t.table_name = i.table_...
1
2
下一页
其他人还搜
general comments
bullet comments
overall comments
posting comments
enter comments
reading comments
clearcomments
fitting comments
give comments on