mysql按某个字段的多个相同的值匹配多个对应字段值
如题,我现在的表里有一个名称字段,这个名称字段对应一个首字母字段,现在要求根据首字母把所有的名称集合起来,有没有什么可以不用26条sql语句实现的方法?要获取的结果示例:...
如题,我现在的表里有一个名称字段,这个名称字段对应一个首字母字段,现在要求根据首字母把所有的名称集合起来,有没有什么可以不用26条sql语句实现的方法?
要获取的结果示例:A:"...","...","...","...","...","...";B:"...","...","...","...","...";C:"...","...","...",;D:"...","...","...","...","..."; 以此类推 展开
要获取的结果示例:A:"...","...","...","...","...","...";B:"...","...","...","...","...";C:"...","...","...",;D:"...","...","...","...","..."; 以此类推 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询