看板 Database 關於我們 聯絡資訊
※ 引述《bbsn (bbsn)》之銘言: : 問題二: : 若我有使用case when選出資料並新增一個檻位'值' : ex: : select case when A.a is null then B.a as 值 : form A join B on A.z=B.z : where 值='XX' : 是不是沒有辦法利用選出來的檻位'值' 來選自己要的資料 : 再麻煩各位幫忙解答,謝謝~ : PS.我是用SQL2005的 問題二的where後面應該改成"B.a='XX' and A.a is null" 因為where會先執行 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 116.12.221.66