1. sql语句查询某位数字或者某几位数字开头的数据,字段类型为数字类:
select * from 表名 where 字段 like ‘0%’;
2. sql搜索以4开头和含有李字的数据:
select * from wlzbpre_user where realname like "%李%" and card_id like '4%';
2023-12-19 14:03:51
1. sql语句查询某位数字或者某几位数字开头的数据,字段类型为数字类:
select * from 表名 where 字段 like ‘0%’;
2. sql搜索以4开头和含有李字的数据:
select * from wlzbpre_user where realname like "%李%" and card_id like '4%';