I have a table with a status column (initially with progress). I need to update this column’s value to success.
Is this query what I want?
Update 'tablename' set status='success' where status='progress'
The reason I am asking is that both the update and the where condition are checking the same column.
Is this correct?
That statement will change the value for each row where status was ‘progress’ to ‘success’. Is that really what you want?