X
X
Xrist1An2015-04-29 11:51:03
MySQL
Xrist1An, 2015-04-29 11:51:03

Change the values ​​of ENUM fields in the entire table with one query?

The table table has an enum field field with 2 values ​​on and off . Now everywhere is off. Is it possible to transfer everything to on in one request ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Mokhov, 2015-04-29
@Xrist1An

can:
UPDATE table SET field = 'on'

M
Mikhail Tikhonin, 2015-04-29
@phpclimber

update `table` set field1 = 'on', field2 = 'on' where ...
What is that?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question