K Kapnula
👤
🗄
课程 17 · 年级 15+

Databases and SQL: where the data lives

📖 课程 ──▶ 🎯 测验——选择翻译 ──▶ ✅ 本课已完成
4 × 5 = 20

A database is tables with rules. The user is the row, the fields are columns: id, name, email. SQL is the question language: SELECT (give), INSERT (add), UPDATE (change), DELETE (remove). On our site listings, users, cities — all live in the database. SELECT * FROM users WHERE city = "Berlin" — "show all Berlin users".

🗄 SQL injection is when an attacker "queries" the database through an input field: '; DROP TABLE users;-- . That is why code always filters input!
🎯
测验一下吧!
用练习巩固主题——就像课后练习
测验——选择翻译 → 🖨 练习纸
← 上一课 下一课 →
⛅ 13° Potsdam 💨 10 km/h
💶 EUR 🇺🇸 1.12 USD 🇷🇺 93.87 RUB 🇵🇱 4.39 PLN 🇺🇦 50.32 UAH EZB · daily
⛽ Fuel E5 2.159€ E10 2.099€ Diesel 2.179€ Berlin · tankerkönig.de