Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
M00n321 — — source: Informix-list mailing list archive (1991-1998)
>How can I update table1.flag with the value of table2.flag
>where table1.value=table2.value
>
UPDATE table1
SET flag =
( SELECT flag
FROM table2
WHERE table2.value = table1.value)
WHERE 1 = 1; #all records
You will want to make sure that both table1 and table2 are indexed on value
unless these tables are very small (row count).
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.