oracle 怎么查询唯一索引
我有很多张表,想用sql语句查询出一张表的唯一索引来,该怎么查啊?麻烦大家了。。
SELECT * from user_indexes
WHERE table_name=YOUR_TABLE_NAME AND uniqueness='UNIQUE';
select * from dba_indexes where owner='' and table_name='' and uniqueness='UNIQUE'
晕 我没说清, 我是想查出这张表的唯一索引有哪些字段。
路过学习。~
恩 跟 user_ind_columns 关联
ok 查出来了,呵呵, 谢谢大家!
相关问答:
安装了Oracle 10g,默认安装了orcl数据库,这个数据库能不能删除啊,还有我如果新建了其他数据库,怎么知道在web中登陆不同数据库的地址啊?
1
可以删除
2
在WEB地址栏中输入地址的时候指定新创建的数据库的IP ......
两个文件1.PC,1.inc
1.PC有操作oracle数据库的 ,1.inc也有操作oracle数据库
在其他数据中如informix 中$include 1.inc就可以使用了
在ORACLE数据库重 $include 1.inc不可用 EXEC SQL include 1.inc也不可 ......
select sum(a.t)from ta a group by ta.a,这条语句将表ta中的数据按照a字段分组汇总t字段。
结果比如:
3 30
4 50
我想得到这个结果:
1 0
2 0
3 30
4 50
5 0
这个结果,请问sql语句怎么写?多谢
nobody ......
eclipse 3.3启动web工程,要连接oracle9i数据库报
严重: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12518, TNS:listener could not hand off cli ......