mysql查询以字符串开头的数据可以有:
1、select * from a where a.name like 'H%'
2、select * from a where left(a.name, 1)='H';
mysql查询不以某个字符串开头:
select * from a where left(a.name, 1)<>'H';
版权声明:本文为ZChangfeng原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
mysql查询以字符串开头的数据可以有:
1、select * from a where a.name like 'H%'
2、select * from a where left(a.name, 1)='H';
mysql查询不以某个字符串开头:
select * from a where left(a.name, 1)<>'H';