包阅导读总结
1. 关键词:MySQL、Varchar、区别、查询、名称
2. 总结:
文本主要围绕 MySQL 中`Varchar(50)`和`varchar(500)`的区别展开,并给出了多个涉及这两种数据类型的查询语句。
3. 主要内容:
– 一级:探讨 MySQL 中`Varchar`数据类型的区别
– 二级:涉及`Varchar(50)`和`varchar(500)`
– 二级:给出多个查询语句示例
– 三级:如`select from category_info_varchar_50 where name = ‘name100000’`
– 三级:以及包含多个名称的`in`条件查询语句
思维导图:
文章地址:https://mp.weixin.qq.com/s/02D5sHTsYDPw-r6W3SJEgg
文章来源:mp.weixin.qq.com
作者:向显
发布时间:2024/7/14 17:08
语言:中文
总字数:1839字
预计阅读时间:8分钟
评分:91分
标签:MySQL,数据库性能,字段类型,Varchar,存储空间
以下为原文内容
本内容来源于用户推荐转载,旨在分享知识与观点,如有侵权请联系删除 联系邮箱 media@ilingban.com
select * from category_info_varchar_50 where name = 'name100000'
select * from category_info_varchar_500 where name = 'name100000'
select * from category_info_varchar_50 where name in('name100','name1000','name100000','name10000','name1100000',
'name200','name2000','name200000','name20000','name2200000','name300','name3000','name300000','name30000','name3300000',
'name400','name4000','name400000','name40000','name4400000','name500','name5000','name500000','name50000','name5500000',
'name600','name6000','name600000','name60000','name6600000','name700','name7000','name700000','name70000','name7700000','name800',
'name8000','name800000','name80000','name6600000','name900','name9000','name900000','name90000','name9900000')
select * from category_info_varchar_50 where name in('name100','name1000','name100000','name10000','name1100000',
'name200','name2000','name200000','name20000','name2200000','name300','name3000','name300000','name30000','name3300000',
'name400','name4000','name400000','name40000','name4400000','name500','name5000','name500000','name50000','name5500000',
'name600','name6000','name600000','name60000','name6600000','name700','name7000','name700000','name70000','name7700000','name800',
'name8000','name800000','name80000','name6600000','name900','name9000','name900000','name90000','name9900000')