Retrieving All Columns
Instead of listing each column, you can use the asterisk *
to retrieve all columns from the table at once. This is especially useful when you need to view all the data in a table without manually typing out each column name. Here’s an example:
9
1
2
SELECT *
FROM table_name;
12SELECT * FROM table_name;
Task
Swipe to start coding
Write an SQL query to retrieve ALL columns from the country
table.
Solution
9
1
2
SELECT *
FROM country
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 3
9
1
No query executed yet... |
Ask AI
Ask anything or try one of the suggested questions to begin our chat