Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Retrieving All Columns | Retrieving Data
Introduction to SQL

book
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;
12
SELECT * FROM table_name;
copy
Task

Swipe to start coding

Write an SQL query to retrieve ALL columns from the country table.

Solution

SELECT *
FROM country

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 3

Query ResultQuery Result
No query executed yet...

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt