Getting Started

MySQL Introduction

Understand what MySQL is and create a first practical example.

MySQL is a practical technology used to build real software. This introduction explains its role in plain language and gives you a small example to change.

Your first step

Read the example one line at a time. Predict the result, run it, and then change one value.

Important definitions

MySQL
The technology explored in this course.
Source code
Instructions written by a developer.
Output
The result produced from source code.

Syntax

Use this general pattern as a reference:

SQL
SELECT column FROM table;

Examples

Return text

EXAMPLE 1
SELECT "Hello" AS message;
ResultOne row with a message column.

Choose columns

EXAMPLE 2
SELECT name, email FROM users;
ResultNames and emails from users.
Try it yourself

Expected output

Hello from MySQL!

Note

Focus on the idea before memorizing punctuation.

Tip

Type the example yourself and change one part at a time.

Common mistakes

  • Copying code without reading it.
  • Changing several things before testing.
  • Ignoring error messages.