一个字符转行的问题 是要弄临时表吗?直接用SQL语句可以搞定吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不能直接用SQL语句,要用辅助表 列转行。group_concat()函数处理也可以用case when去操作。 select id,group_concat(ids)from tbgroup b id select ids from tb where ids=12union select ids from tb where ids=13unionselect ids from tb where ids=14union select ids from tb where ids=15union select ids from tb where ids=16union select ids from tb where ids=17 MySql安装到最后,报的错。求解释 MySql怎样将日期格式转换成字符串格式? 关于多字段排序 查詢問題 mysql添加表字段的怪问题 用mysqldump备份数据库的时候,目标文件夹名字里,有空格怎么办呢, mysql 让扬声器发出声音 请问一下,在mysql下面怎么样在已经创造好的数据库里增加一张表呀 mysql for linux 启动问题? mysql查询为什么不准确 mysql 搜索问题 mysql command line client打不开(闪一下消失)
group_concat()函数处理
也可以用case when去操作。
from tb
group b id
union
select ids from tb where ids=13
union
select ids from tb where ids=14
union
select ids from tb where ids=15
union
select ids from tb where ids=16
union
select ids from tb where ids=17