Able to perform simple CRUD operations Flashcards
1
Q
create databse
A
and use database
2
Q
CREATE (a new record)
A
3
Q
READ
A
Reading data:
To retrieve all records from the table:
4
Q
READ a specific columns
A
To retrieve specific columns:
5
Q
To retrieve a specific record by its primary key
A
To retrieve a specific record by its primary key (assuming the id is 1):
6
Q
UPDATE
A
Updating a record:
To update the email of a user with id 1:
7
Q
DELETE
A
Deleting a record:
To delete a user with id 1: