Q. What is the value of val2 in the following MySQL statement?
UPDATE t SET val1 = val1 + 2, val2 = val1;

  • (A) previous val1
  • (B) DROP
  • (C) unchanged
  • (D) val1 + 1
πŸ’¬ Discuss
βœ… Correct Answer: (B) DROP
Explanation: This MySQL statement uses the UPDATE command to modify the values in a table named 't'. Let's break down what's happening:
Explanation by: Ritu Nagar
This MySQL statement uses the UPDATE command to modify the values in a table named 't'. Let's break down what's happening:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
143
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Nagar
Publisher
πŸ“ˆ
89%
Success Rate