The update statement is like this
UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value
However
for a simple table
cola colb colc cold cole
I would like not to update colc and cole
but i do not know the exact structue (I can not tell how many col there, may be colf exist too)
So how to update the column that exclude colc and cole? Thank you
You do not have to define all columns of a table when you do a UPDATE statement in MySQL. Only the columns that you tell it to update will be updated.
This will not change the value of
colcorcole.