Update Query
- In the following query how many rows will be updated?
UPDATE person
SET Lname=’Gupta’,
Fname=’Ajit’,
WHERE person_id < 10;
/* person_id is a primary key */
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
0-9
- In the following query how many rows will be updated?
UPDATE Employee
SET Lname=’Gupta’,
Fname = ’Ajit’,
WHERE Emp_id = 101;
/* person_id is a primary key */
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Single row
- Which statement is used to delete an existing row from the table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
DELETE
- Which statement is used for updating existing information in the table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
UPDATE
- Which keyword in the UPDATE statement is used to assign values to columns?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The ‘UPDATE’ statement in MySQL has its own syntax. The ‘SET’ keyword is followed by an assignment list which indicates the set of columns whose value needs to be updated with a specified value.