MySQL Complete Tutorial
Overview
Tutorial Features
- Progressive - From basic to advanced
- Bilingual - English and Chinese side-by-side
- Practical - Runnable examples
- Useful - Real-world scenarios
- Complete - Covers 35+ core topics
Tutorial Structure
Part 1: Basics
Part 2: Core Operations
- create-table.md - Create Table
- drop-table.md - Drop Table
- insert-data.md - Insert Data
- select-data.md - Select Data
- where-clause.md - WHERE Clause
- update.md - UPDATE
- delete.md - DELETE
- like-clause.md - LIKE Clause
- union.md - UNION
- order-by.md - ORDER BY
- group-by.md - GROUP BY
- joins.md - Joins
- null-values.md - NULL Values
Part 3: Advanced Topics
- regex.md - Regex
- transactions.md - Transactions
- alter.md - ALTER
- indexes.md - Indexes
- temporary-tables.md - Temporary Tables
- clone-tables.md - Clone Tables
- metadata.md - Metadata
- sequences.md - Sequences
- duplicates.md - Duplicates
- sql-injection.md - SQL Injection
Part 4: Data Operations
- export-data.md - Export Data
- import-data.md - Import Data
- functions.md - Functions
- operators.md - Operators
- commands.md - Commands
- quiz.md - Quiz
- programming.md - Programming
- resources.md - Resources
Quick Start
Install MySQL
Connect to MySQL
Common Commands
CRUD
|------|------|------|------| | TINYINT | 1 byte | -128 to 127 | | | INT | 4 bytes | -2147483648 to 2147483647 | | | BIGINT | 8 bytes | -9.2e+18 to 9.2e+18 | |
|------|----------|----------| | TEXT | 65535 | | | MEDIUMTEXT | 16777215 | | | LONGTEXT | 4294967295 | |
|------|------|------|------| | DATE | 3 bytes | 1000-01-01 to 9999-12-31 | | | TIME | 3 bytes | -838:59:59 to 838:59:59 | | | TIMESTAMP | 4 bytes | 1970-01-01 00:00:01 to 2038-01-19:03:14:07:19:03:14:07 | | | YEAR | 1 byte | 1901 to 2155 | |
- UPDATEDELETE
- UNION
- NULL
-
MySQL: https:
-
W3Schools MySQL: https:
-
MySQLTutorial: https://www.mysqltutorial.org/
-
DigitalOcean MySQL: https:
-
MySQL: https:
-
Stack Overflow: https://stackoverflow.com/questions/tagged/mysql
-
Reddit MySQL: https://www.reddit.com/r/MySQL/