Course Content
Introduction to SQL
Introduction to SQL
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:
SELECT * FROM table_name;
Swipe to show code editor
Write an SQL query to retrieve ALL columns from the country
table.
Thanks for your feedback!
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:
SELECT * FROM table_name;
Swipe to show code editor
Write an SQL query to retrieve ALL columns from the country
table.
Thanks for your feedback!