DN
N'условие поиска'
Size: a a a
DN
N'условие поиска'
АС
N'условие поиска'
A
N'условие поиска'
АС
N'условие поиска'
MC
MC

MC
MC

A
_
UPDATE choice
SET switchstate = CASE
WHEN switchstate = 'on'
THEN switchstate = 'off'
WHEN switchstate = 'off'
THEN switchstate = 'on'
ELSE switchstate = 'off'
END
WHERE userid = 123456789;
SELECT userid, switchstate
FROM choice
ORDER BY firstname;
дело в том, что в в итоге я получаю трейсбек в виде:ERROR: operator does not exist: character varying = boolean Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Position: 74читать умею, а переписать корректно как не могу понять
DI
UPDATE choice
SET switchstate = CASE
WHEN switchstate = 'on'
THEN switchstate = 'off'
WHEN switchstate = 'off'
THEN switchstate = 'on'
ELSE switchstate = 'off'
END
WHERE userid = 123456789;
SELECT userid, switchstate
FROM choice
ORDER BY firstname;
дело в том, что в в итоге я получаю трейсбек в виде:ERROR: operator does not exist: character varying = boolean Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Position: 74читать умею, а переписать корректно как не могу понять
_
_
_
DI
_
_
_
You might need to add explicit type casts.DI