A Guide To Top 10 SQL Commands
A Guide To Top 10 SQL Commands
SQL
Commands
Table
Structured
Select
System
Language
Management Database
Introduction to SQL
Today the universal language for managing relational
database is SQL. It's both powerful and relatively easy
to learn.
A variable-length character
column for employee names with
name (VARCHAR(50))
a maximum length of 50
characters.
¯ ADD ª
Example: ALTER TABLE employees ADD department
VARCHAR(30);
RENAME Command
SELECT Statement
INSERT Statement
Doe', into the 'customers' table with the specified first name,
following way.
Example:
'2023-10-19');
UPDATE Statement
Example:
DELETE Statement
Example:
January 1, 2023.
removes data.
COMMIT Command
< Example:
BEGIN;
COMMIT;
permanent.
ROLLBACK Command
O Syntax: ROLLBACKk
O Example:
BEGIN;
ROLLBACK;
previous state.
SAVEPOINT Command
BEGIN;
SAVEPOINT sp1;
ROLLBACK TO sp1;
savepoint.
Bosscoder?
1000+ Alumni placed at Top
Product-based companies.
Explore More