Selecting Multiple Columns
Separate columns with commas.
Syntax
sql
1SELECT name, age FROM students;Result
| name | age |
|---|---|
| Alice | 14 |
| Bob | 12 |
| Carol | 15 |
More Columns
sql
1SELECT name, course, marks, grade FROM students;
Separate columns with commas.
1SELECT name, age FROM students;| name | age |
|---|---|
| Alice | 14 |
| Bob | 12 |
| Carol | 15 |
1SELECT name, course, marks, grade FROM students;