移除空白字元
你也可能會遇到以空白字元 '' 表示的遺漏值。
當遺漏值以空白字元 '' 表示時,可以使用比較運算子 = 與 <> 來選取或移除那些列。
airports 資料表中的 airport_city 欄位含有一些空白字元。試著把它們找出來!
本練習屬於課程
在 SQL Server 資料庫中清理資料
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
SELECT *
-- Select the appropriate table
FROM ___
-- Exclude the rows where airport_city is missing
WHERE ___ ___ ___