Skip
Arish's avatar

58. Selecting Specific Columns


Select Specific Columns

Instead of *, name the columns you need.

Single Column

sql
1SELECT name FROM students;

Result

name
Alice
Bob
Carol

Benefits

  • Faster queries
  • Less data transfer
  • Clearer code