Question: Consider the following command: UPDATE customer SET customer _ id = customer _ id - - 1 ; What happens if we run this command

Consider the following command:
UPDATE customer
SET customer_id = customer_id --1;
What happens if we run this command in MySQL?
The customer table has every customer_id set to the same value as it previously had.
The customer_id in the customer table for all records is decremented by 1.
The customer_id in the customer table for all records is incremented by 1.
An error is thrown due to the --.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!