SQL Tutorial · Revision notes
Introduction to SQL
SQL stands for Structured Query Language. It is the standard language used to store, read, change and delete data in a relational database. Think of it as the language you use to talk to a database, like asking the college office for a list of students.
Quick revision
- SQL = Structured Query Language, used for relational databases.
- SQL is a language. MySQL, Oracle and PostgreSQL are DBMS software.
- Query steps: parse, check, optimize, execute, return result.
- DDL: CREATE, ALTER, DROP, TRUNCATE.
- DML: INSERT, UPDATE, DELETE. DQL: SELECT.
- DCL: GRANT, REVOKE. TCL: COMMIT, ROLLBACK, SAVEPOINT.
- Advantages: easy, fast, standard, secure, portable and powerful.