首页 > 数据库技术 > 详细

ORACLE学习记录

时间:2015-04-02 18:01:36      阅读:184      评论:0      收藏:0      [点我收藏+]

1.查询主键(P),外键(R)

select cu.*,au.constraint_type from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name 
and cu.constraint_name = FK_UMOMAPUSER
and au.constraint_type = R

 

ORACLE学习记录

原文:http://www.cnblogs.com/smashed/p/4387343.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!