下面的代碼產生一個錯誤替換表的記錄:SQL查詢與另一
select lastname, firstname, workphone, homephone
from members if (workphone is null) then workphone = homephone;
我想從一個名爲members
表中選擇lastnames
,firstnames
和你的電話號碼。如果一個成員'workphone is null
我需要用homephone
替換它。
我會很樂意澄清,如果需要。
*** ***什麼數據庫? SQL只是查詢語言.... –
我已經加載了歌詞數據庫 – cryptomath
爲什麼不把它拉下來做客戶端映射? – James