Exploring a table with SELECT *
See everything in a table you have never met.
The star * after SELECT means "every column". It is the quickest way to look at a table you have never seen: you learn what columns it has and what the values look like. In reports and real programs people usually list the columns they need instead, so the result does not change by surprise when someone adds a column later.
SELECT * FROM courses;Shows all four columns of the school courses table (id, title, teacher, room) for all 5 courses.
Keywords are not case sensitive: select * from courses; works the same as SELECT * FROM courses;. The values inside the table are a different story: the text "Algebra" and "algebra" are not equal when you compare them, as you will see soon.