Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

5/18/22, 3:13 PM SQL Tutorial

 Menu  Log in
Dark mode

Dark code
  HTML CSS   

SQL Tutorial
❮ Home Next ❯

SQL is a standard language for storing, manipulating and retrieving data in databases.

Our SQL tutorial will teach you how to use SQL in:
MySQL, SQL Server, MS Access,
Oracle, Sybase, Informix, Postgres, and other database systems.

Start learning SQL now »

Examples in Each Chapter


With our online SQL editor, you can edit the SQL statements, and click on a button to
view the result.

Example

SELECT * FROM Customers;

Try it Yourself »

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 1/7


5/18/22, 3:13 PM SQL Tutorial

Click on the "Try it Yourself" button to see how it works.

SQL Exercises

Test Yourself With Exercises

Exercise:
Insert the missing statement to get all the columns from the Customers table.

* FROM Customers;

Submit Answer »

Start the Exercise

SQL Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.

See All SQL Examples

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 2/7


5/18/22, 3:13 PM SQL Tutorial

SQL Quiz Test


Test your SQL skills at W3Schools!

Start SQL Quiz!

SQL References
At W3Schools you will find a complete reference for keywords and function:

SQL Keyword Reference

MYSQL Functions

SQLServer Functions

MS Access Functions

SQL Quick Reference

SQL Data Types


Data types and ranges for Microsoft Access, MySQL and SQL Server.

SQL Data Types

Kickstart your career

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 3/7


5/18/22, 3:13 PM SQL Tutorial

Get certified by completing


the SQL course

Get certified
w3schoo
l

s
CE
RT

2
I
20

2
FI
ED
.

❮ Home Next ❯

NEW

We just launched

W3Schools videos

Explore now

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 4/7


5/18/22, 3:13 PM SQL Tutorial

COLOR PICKER




Get certified

by completing

a course today!

school
w3 s

2
CE

02

TI 2
R

FI .
ED

Get started

CODE GAME

Play Game

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 5/7


5/18/22, 3:13 PM SQL Tutorial

Report Error

Forum

About

Shop

Top Tutorials
HTML Tutorial

CSS Tutorial

JavaScript Tutorial

How To Tutorial

SQL Tutorial

Python Tutorial

W3.CSS Tutorial

Bootstrap Tutorial

PHP Tutorial

Java Tutorial

C++ Tutorial

jQuery Tutorial

Top References
HTML Reference

CSS Reference

JavaScript Reference

SQL Reference

Python Reference

W3.CSS Reference

Bootstrap Reference

PHP Reference

HTML Colors

Java Reference

Angular Reference

jQuery Reference

Top Examples
HTML Examples

CSS Examples

JavaScript Examples

How To Examples

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 6/7


5/18/22, 3:13 PM SQL Tutorial

SQL Examples

Python Examples

W3.CSS Examples

Bootstrap Examples

PHP Examples

Java Examples

XML Examples

jQuery Examples

Web Courses
HTML Course

CSS Course

JavaScript Course

Front End Course

SQL Course

Python Course

PHP Course

jQuery Course

Java Course

C++ Course
C# Course

XML Course

Get Certified »

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant
full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use,
cookie and privacy policy.

Copyright 1999-2022 by Refsnes Data. All Rights Reserved.

W3Schools is Powered by W3.CSS.

https://www.w3schools.com/sql/#:~:text=SQL is a standard language,Postgres%2C and other database systems. 7/7

You might also like