update tabella set valore = 1 where [codizione] ' true
update tabella set valore = 0 where [codizione] ' false