输入banner图图片脚本导航/分类

mysql将字段值中的第一个逗号前面的数据作为查询条件

sql语句如下:

select count(*) as lot from OA_sample_check where left(ecnNO, LOCATE(',',ecnNO)-1)='a1'