table:news_id user_id
ALTER TABLE table DROP PRIMARY KEY, ADD PRIMARY KEY (`news_id`, `user_id`) USING BTREE;
这种情况下效率有多少影响?
认证0级讲师
Whether the primary key is auto-incremented does not affect the efficiency of the original primary key. Both auto-increment and primary key are independent functions.
Whether the primary key is auto-incremented does not affect the efficiency of the original primary key. Both auto-increment and primary key are independent functions.