1.3.2 SQL (deleting record , Deleting tables) Flashcards
1
Q
What does the command DELETE do?
A
removes data from a database table.
DELETE FROM users
WHERE age < 18;
(deletes all users younger than 18 from the ‘users’ table)
DELETE FROM users
WHERE name=”John”;
(deletes a record where the name is John)
2
Q
what does the command DROP do?
A
it deletes tables from a database.
DROP TABLE users;
(deletes the ‘users’ table)