Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Good afternoon, Eugene.
Let's say your table's DDL is:
CREATE TABLE settings (
caption VARCHAR(255) UNIQUE NOT NULL, -- принимает значения option, setup
value INT NOT NULL DEFAULT 0
);
UPDATE settings S1, settings S2
SET S1.value = 1
WHERE
S1.caption IN ('setup1', 'setup2')
AND S2.caption = 'option' AND S2.value = 0;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question