一个字符转行的问题 是要弄临时表吗?直接用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 linux 下mysql启动问题 如何用hibernate实现每天增加一个表,每天删除一个表,保留30天的表,表名以日期的命名? 关于数据库定时清理问题 高分请教大家一个mysql的问题 LINUX中mysql导入数据库的几大问题! mysql链接问题 请教日期的mysql查询语法? 论坛流量增大时,提示不能连接mysql,应该怎么解决? mysql连接数据库受限 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