Re: [SQL ] 請教這該如何下SQL 謝謝

看板Database作者 (ken)時間12年前 (2012/04/26 12:31), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串2/2 (看更多)
SELECT case when field1='A' then 'AD' end field1, case when field2='B' then 'BE' end field2 , case when field3='C' then 'CE' end field3 from t1 limit 1; 不過這也許不是你要的...XD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.249.136.170

04/26 12:34, , 1F
then 'CF'
04/26 12:34, 1F

04/26 13:10, , 2F
所以還有別的想法嗎 感謝!
04/26 13:10, 2F
文章代碼(AID): #1FcC-RBg (Database)
文章代碼(AID): #1FcC-RBg (Database)