【发布时间】:2015-12-19 12:22:19
【问题描述】:
我有一张这样的桌子
select SupplierID,ProductIDs from T_ProductSupplierTable
输出是
SupplierID ProductIDs
1 1,2,3
2 2,3,4
3 1,5,2
我需要这样的答案
SupplierID ProductIDs
1 1
1 2
1 3
2 2
2 3
2 4
3 1
3 5
3 2
如何生成查询...?
【问题讨论】:
-
这将取决于您的 DBMS(Oracle、SQL Server、MySQL...)
标签: sql sql-server-2008 split