SQL Fundamentals - Joseph Konka
SQL Fundamentals - Joseph Konka
Joseph Konka
Contents
A. Data Definition Language
1. Create table
2. Modify table
3. Remove table
1. Create record
2. Read record
3. Update record
4. Delete record
Part I
Data Definition Language
Data Definition Language
DDM consist in databases objects manipulation, create, modify and remove.
1. Create table
3. Remove a table
Create table
This is the table creation syntax
column1 type1,
column2 type2,
column3 type3
);
Rename column
ALTER TABLE <table name>
RENAME COLUMN <col name> TO <new name>;
Delete column
ALTER TABLE <table name>
DROP COLUMN <col name>;
Remove table
Remove table
DROP TABLE <table name>;
1. CREATE
2. READ
3. UPDATE
4. DELETE
Sort records
SELECT *
FROM <table name>
ORDER BY <col name>;
Filter records
SELECT *
FROM <table name>
WHERE <condition>;
Update records
Update specific records
UPDATE <table name>
SET <col name> = <new value>
WHERE <condition>;
Record : Row/Data
If you have any questions, feel free to send me message on +228 91 51 89 23.
Algo Jungle Follow me on social medias
Joseph Konka
github.com/algojungle
+228 91 51 89 23
algojungle.herokuapp.com
Joseph Konka
Technical Writer at Algo Jungle
‘‘Le savoir est la seule matière qui s’accroît
[email protected] quand on la partage.’’ Socrate
Algo Jungle
algojungle.herokuapp.com
Algo Jungle
Community
Let’s Connect and Learn Together !
ALGO JUNGLE