Re: [SQL ] 可以這樣寫嗎

看板Database作者時間13年前 (2013/02/04 10:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
: : -- : ※ 發信站: 批踢踢實業坊(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
文章代碼(AID): #1H3nYKaO (Database)
文章代碼(AID): #1H3nYKaO (Database)