Mysql多条数据以一条展示和判断某字符是否在某字段

多条数据以一条数据展示:GROUP_CONCAT

select GROUP_CONCAT(uuid) from user;

判断某字符是否存在某字段:INSTR

select * from(
select GROUP_CONCAT(uuid) names from user
) temp where INSTR(uuid,'001');

 

posted @ 2020-04-27 09:50  林荼  阅读(497)  评论(0编辑  收藏  举报