Saltar al contenido

Choosing columns

English
Picking columns

SELECT * returns every column. Usually you want only a few. Instead of *, list the columns you want, separated by commas:

SELECT name, score FROM student;

The result has just those columns, in the order you wrote them.

SELECT name, score returns only the name and score columns of the student table

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP