Re: [SQL ] 請教這該如何下SQL 謝謝
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
04/26 12:34, 1F
→
04/26 13:10, , 2F
04/26 13:10, 2F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):