mysql优化点之一
我们可以用枚举类型;
create table enum_test(e enum('男','女') not null) ;
select * from enum_test where e=2;
优点:
节省空间,提高查询效率
如果你喜欢我的分享,欢迎关注微信公众号 java学长分享技术干货!
悄悄告诉你免费赠送重磅互联网架构师教程,提升职场技术水平!
![](https://img-blog.csdnimg.cn/20200601100352852.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ppYXJ1aV9tYW1h,size_16,color_FFFFFF,t_70)
mysql优化点之一
我们可以用枚举类型;
create table enum_test(e enum('男','女') not null) ;
select * from enum_test where e=2;
优点:
节省空间,提高查询效率
如果你喜欢我的分享,欢迎关注微信公众号 java学长分享技术干货!
悄悄告诉你免费赠送重磅互联网架构师教程,提升职场技术水平!