Syntax

SQL Select Specific Columns Syntax

In SQL, select specific columns: returns only the columns you name — SELECT name, email FROM users;

Quick Answer

Syntax
SELECT name, email FROM users;
SQLSyntax

Select Specific Columns

Code example
SELECT name, email FROM users;

Returns only the columns you name.

Learn More

How to select specific columns in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

SQL Select Specific Columns Syntax

Use SELECT name, email FROM users;.

Related Syntax References

Frequently asked questions

What is the SQL syntax for select specific columns?

Use this pattern: SELECT name, email FROM users;

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify