Menu
×
   ❮     
HTMLCSSJAVASCRIPTSQLPYTHONJAVAPHPHOW TOW3.CSSCC++C#BOOTSTRAPREACTMYSQLJQUERYEXCELXMLDJANGONUMPYPANDASNODEJSDSATYPESCRIPTANGULARGITPOSTGRESQLMONGODBASPAIRGOKOTLINSASSVUEGEN AISCIPYCYBERSECURITYDATA SCIENCEINTRO TO PROGRAMMINGBASH

MySQL Tutorial

MySQL HOMEMySQL IntroMySQL RDBMS

MySQL SQL

MySQL SQLMySQL SELECTMySQL WHEREMySQL AND, OR, NOTMySQL ORDER BYMySQL INSERT INTOMySQL NULL ValuesMySQL UPDATEMySQL DELETEMySQL LIMITMySQL MIN and MAXMySQL COUNT, AVG, SUMMySQL LIKEMySQL WildcardsMySQL INMySQL BETWEENMySQL AliasesMySQL JoinsMySQL INNER JOINMySQL LEFT JOINMySQL RIGHT JOINMySQL CROSS JOINMySQL Self JoinMySQL UNIONMySQL GROUP BYMySQL HAVINGMySQL EXISTSMySQL ANY, ALLMySQL INSERT SELECTMySQL CASEMySQL Null FunctionsMySQL CommentsMySQL Operators

MySQL Database

MySQL Create DBMySQL Drop DBMySQL Create TableMySQL Drop TableMySQL Alter TableMySQL ConstraintsMySQL Not NullMySQL UniqueMySQL Primary KeyMySQL Foreign KeyMySQL CheckMySQL DefaultMySQL Create IndexMySQL Auto IncrementMySQL DatesMySQL Views

MySQL References

MySQL Data TypesMySQL Functions

MySQL Examples

MySQL ExamplesMySQL EditorMySQL QuizMySQL ExercisesMySQL SyllabusMySQL Study PlanMySQL Certificate


MySQL Tutorial

Learn MySQL

MySQL is a widely used relational database management system (RDBMS).

MySQL is free and open-source.

MySQL is ideal for both small and large applications.

Start learning MySQL now »

Examples in Each Chapter

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

Example

SELECT * FROM Customers;
Try it Yourself »

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


MySQL Exercises

Many chapters in this tutorial end with an exercise where you can check your level of knowledge.

See all MySQL Exercises



MySQL Examples

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

See All SQL Examples


MySQL Quiz Test

Test your MySQL skills at W3Schools!

Start MySQL Quiz!


Track Your Progress

Create a free W3Schools account and get access to more features and learning materials:

  • CheckmarkView your completed tutorials, exercises, and quizzes
  • CheckmarkKeep an eye on your progress and daily streaks
  • CheckmarkSet goals and create learning paths
  • CheckmarkCreate your own personal website

Sign Up for Free

Note: This is an optional feature. You can study at W3Schools without creating an account.


MySQL References

At W3Schools you will find a complete reference of MySQL data types and functions:

MySQL Data Types

MySQL Functions


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

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-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

close