MulaiMulai sekarang secara gratis

Left and right

We can retrieve portions of a string from either the start of the string, using LEFT, or working back from the end of the string, using RIGHT.

Latihan ini adalah bagian dari kursus

Introduction to SQL Server

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

-- Select the first 25 characters from the left of the description column
SELECT 
  ___(description, ___) AS ___ 
FROM 
  grid;
Edit dan Jalankan Kode