Mysql 取字段值逗号第一个数据的查询语句时间:2022-02-06 02:27:38 代码如下: select count(*) as lot from OA_sample_check where left(ecnNO, LOCATE(',',ecnNO)-1)='a1'