How do you create a new table?
CREATE TABLE table_name (
column datatype,
column datatype
)
How do you insert a new record into an table?
INSERT INTO users (email, username, pwd) VALUES (‘test@gmail.com’, ‘test123’, ‘rightright’);
How can you select a specific record?
SELECT * from users WHERE id = 1
How can you update a specific record?
UPDATE table_name SET email = ‘new@gmail.com’ WHERE id = 1
How can you delete a specific record?
DELETE from table_name WHERE id = 1
How can you receive all records from a table?
SELECT * from table_name