Skip to content
Advertisement

i need a query to update column transferred_to to ‘Invalid_destination’ in Storage table if transferred_to column is equal 100

the query that i tried is this

But i got this output

so this is my table

Advertisement

Answer

You seem to want:

Note that storage is a language keyword in MySQL, hence a poor choice for a column name. It would be simpler to use another column name, otherwise you need to quote it.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement