一个字符转行的问题 是要弄临时表吗?直接用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 mysql5.0的存储过程 MYSQL一台机器上起多个服务,这多个服务可以同时访问同一数据区吗? sql server数据库如何转成 postgresql 如何分离中文及英文 Mysql的一个表最大可以存多少条纪录? 关于参数查询 mysql的安装问题? hql查询获取微博列表时如何获取是否已看过该微博,及是否赞过该微博 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