您现在的位置是:首页
>
primaryschool读音 找出哪些table没有primary key
找出哪些ta le没有 rimary key 可以依照SCHEMA展出没有设PK的TABLE def chema_ ame = am am ow er_ ame col ame fo
找出哪些table没有primary key

可以依照SCHEMA展出没有设PK的TABLE def schema_name = &&owner_name col sname format a heading Schema col tname format a heading Table Name select dt owner sname dt table_name tname from sys dba_tables dt where dt owner like upper( &schema_name ) escape and not exists (select x from sys dba_constraints dc where dc owner = dt owner and dc table_name = dt table_name and nstraint_type = P ) order by / 执行结果 Schema Table Name APPLE TEST_TB APPLE KKK APPLE P APPLE PLAN_TABLE APPLE QQ APPLE T APPLE T APPLE T lishixinzhi/Article/program/Oracle/201311/17958
很赞哦! (1048)