SQL
A query language for relational databases. Through it, data is read, added, updated, and deleted.
Basic Commands
| Command | What it does |
|---|---|
SELECT |
Reads data |
INSERT |
Adds rows |
UPDATE |
Updates existing rows |
DELETE |
Deletes |
Example
SELECT title, description
FROM shop_product
WHERE id = 1630;
Role in Automation
When API is not available or does not cover the required operation, direct SQL queries to MySQL must be written. This is powerful but dangerous: an incorrect UPDATE without a WHERE condition can affect all table rows.