πŸ“Š MySQL
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) UPDATE student_details SET Student_name="ram", Student_department='Chemical' WHERE ID='4';

Explanation: According to the given situation we will write,

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

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';

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
220
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Jatin Dubey
Publisher
πŸ“ˆ
93%
Success Rate