• 登录
  • Subscribe RSS Feed
 

'Index' Tag

  • 主键索引的一点测试

    09月 21, 2009

    1、 对test表的id添加主键: SQL> alter table test add constraint pk_test_id primary key (id); 过程中,会阻塞其他会话的DML操作。 2、 把主键约束disable后,发现主键上的索引被删除了。 SQL> select table_name,status from user_indexes where index_name = 'PK_TEST_ID';   TABLE_NAME                     STATUS ------------------------------ -------- TEST                           VALID SQL> alter table test disable constraint pk_test_id;   Table altered   SQL> SQL> select table_name,status from user_indexes where index_name = 'PK_TEST_ID';   TABLE_NAME                     STATUS [...]

 
Powered by BlogCN.com - WordPress and MySQL. Theme by Shlomi Noach, openark.org