📌  相关文章
📜  在 sql server 中合并逗号以分隔 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:54.208000             🧑  作者: Mango

代码示例1
DECLARE @List VARCHAR(8000)

SELECT @List = COALESCE(@List + ',', '') + CAST(OfferID AS VARCHAR)
FROM   Emp
WHERE  EmpID = 23

SELECT @List