Home > Database > Mysql Tutorial > Mysql 取字段值逗号第一个数据的查询语句_MySQL

Mysql 取字段值逗号第一个数据的查询语句_MySQL

WBOY
Release: 2016-06-01 13:25:36
Original
1061 people have browsed it

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template