查看是否已经存在主键
select a.constraint_name, a.column_name from user_cons_columns a, user_constraints b where a.constraint_name = b.constraint_name and b.constraint_type = ‘P‘ and a.table_name = ‘SME_V_A....‘View Code
oracle视图建主键
标签:
查看是否已经存在主键
select a.constraint_name, a.column_name from user_cons_columns a, user_constraints b where a.constraint_name = b.constraint_name and b.constraint_type = ‘P‘ and a.table_name = ‘SME_V_A....‘View Code
oracle视图建主键
标签: