1. sql语句查询某位数字或者某几位数字开头的数据,字段类型为数字类:
select * from 表名 where 字段 like ‘0%’;
2. sql搜索以4开头和含有李字的数据:
select * from wlzbpre_user where realname like "%李%" and card_id like '4%';
posted on 2016-08-30 09:35 飞离地平线 阅读(567) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 飞离地平线 Powered by .NET 9.0 on Kubernetes