Home / Programming MCQs / MySQL MCQs / Question

J

Jatin Dubey • 3.72K Points
Extraordinary

Q. Suppose you have two columns named student_name and student_department inside table student_details and you are asked to update the value of these two columns where ID=4 then what statement you will write?

(A) UPDATE student_details SET Student_name="ram", Student_department='Chemical' WHERE ID='4';
(B) UPDATE table student_details SET column_name Student_name="ram", Student_department='Chemical' WHERE ID='4';
(C) UPDATE student_details SET Student_name="ram" and Student_department='Chemical' WHERE ID='4';
(D) None of these
Explanation by: Jatin Dubey
According to the given situation we will write,

UPDATE student_details SET Student_name="ram", Student_department='Chemical' WHERE ID='4';

You must be Logged in to update hint/solution

Discusssion

Login to discuss.