查表的主键语句
金蝶云社区-hhlalun
hhlalun
0人赞赏了该文章 828次浏览 未经作者许可,禁止转载编辑于2017年04月17日 12:58:36
select cu.* from user_cons_columns cu, user_constraints au
where cu.constraint_name = au.constraint_name
and au.constraint_type = 'P' and au.table_name = '表名' --表名需要大写