我有以下地址数据:
ID Address
---------------
1 123 Riverside Drive
1 Pleasantvile
1 Some Country
2 96 Another Street
2 Europe
是否有 SQL hack 或基于 ID 翻转此数据的简单方法,以便我将以下结果分散到几个地址字段中:
ID Address1 Address2 Address3
----------------------------------------------------------
1 123 Riverside Drive Pleasantvile Some Country
2 96 Another Street Europe
谢谢。