
1 |
create table SUser( |


1 |
select id,name,email from SUser where email='[email protected]' |
- 使用前缀索引,定义好长度,就可以做到既节省空间,又不用额外增加太多的查询成本
- select count(distinct email) as L from SUser;
- 使用前缀索引就用不上覆盖索引对查询性能的优化了

1 |
create table SUser( |


1 |
select id,name,email from SUser where email='[email protected]' |
近期评论