查询字段以汉字开头:
select * from tb_product where proname like '[啊-座]%'
啊是第一个汉字,座是最后一个。不过不知道跟编码有没有关系。
查询字段以数字开头
select * from tb_product where proname like '[0-9]%'
反之在 like 前面加个not就行了。
select * from tb_product where proname like '[啊-座]%'
啊是第一个汉字,座是最后一个。不过不知道跟编码有没有关系。
查询字段以数字开头
select * from tb_product where proname like '[0-9]%'
反之在 like 前面加个not就行了。