单独增加主键和索引的SQL
ALTER TABLE user_relation_0 ADD INDEX `idx_user_relation` USING BTREE(`user_uuid_a`, `arefriends`); ALTER TABLE user_relation_0 ADD CONSTRAINT `pk_user_relation` PRIMARY KEY(`user_relation_uuid`);
| Print article | This entry was posted by Herbert on 2009/08/25 at 16:31, and is filed under Database. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |