
mysql
AtomDCM
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql多字段,模糊查询sql
SELECT * from sys_food where CONCAT(foodName,factoryName) like '%白%'原创 2018-08-22 17:00:58 · 710 阅读 · 0 评论 -
Mysql 数字字符串按照数字排序
一个关于MySQL字符串排序,在数据里面定义的是varchar类型,实际存放的是Int类型的数据,按一下查询语句进行排序: 将字段*1或者+0可以将MySQL字符串字段按数值排序 如: select * from table where 1 order by id*1 desc; 或者 select * from table where 1 order by id+0 desc; 除了...原创 2018-08-17 14:22:29 · 3752 阅读 · 1 评论