Avsnitt 1. Kapitel 3
single
SQL Select Column
Svep för att visa menyn
You can retrieve not all the data, but only some columns. For this, you should specify column name, for example, singer or title.
This query returns all the data containing in the title column:
1SELECT title FROM songs
You can also choose two or more columns:
1SELECT title, singer FROM songs
Now you selected all records from the table, but only title and singer columns.
Uppgift
Svep för att börja koda
Select info about album and year for all records from songs.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 3
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal