開始使用免費開始

Left 與 Right

你可以擷取字串的一部分:從開頭使用 LEFT,或從末尾往回數使用 RIGHT

本練習屬於課程

SQL Server 入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

-- Select the first 25 characters from the left of the description column
SELECT 
  ___(description, ___) AS ___ 
FROM 
  grid;
編輯並執行程式碼