请问mysql innodb的非自增ID主键的效率?
PHP中文网
PHP中文网 2017-04-17 13:45:45
0
1
631

table:
news_id user_id

ALTER TABLE table DROP PRIMARY KEY, ADD PRIMARY KEY (`news_id`, `user_id`) USING BTREE;

这种情况下效率有多少影响?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
黄舟

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!