看板 Database 關於我們 聯絡資訊
: : -- : ※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 114.136.213.166 : → jengting:請參考這篇文章 ~~ http://ppt.cc/9j_V 02/01 22:44 : → knives:感謝分享 02/04 07:02 我根據連結知道要用 COALESCE 這個來連結 可是如果我想要根據某個鍵 order_uid去做group 我是這樣寫 Select @str = coalesce(@str+',','') + prod_name,order_uid GRoup by order_uid 這樣就會有錯誤 該怎麼寫才對呢 謝謝回答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.137.103.38