UPDATE with AND clarification
От | Jamie Thompson |
---|---|
Тема | UPDATE with AND clarification |
Дата | |
Msg-id | CABoe=cS68ZKuY09AUE92QuZbZG=UQozBL0m+nWQQ-oLFfDhfFA@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: UPDATE with AND clarification
|
Список | pgsql-sql |
Hi,
Struggled to find a section about this when scanning through the docs, but awkward keywords to scan for, so apologies for duplicating a request that has very likely come through before.> UPDATE tablename SET col1 = val1 AND col2 = val2 WHERE id = X
> Update on public.tablename (cost=11.91..24.87 rows=0 width=0) (actual time=1.377..1.378 rows=0 loops=1)
> UPDATE 1
Is it because it's only looking at col2 and in this scenario that value was already correct? What's it doing with the first column (col1) in the SET?
Thanks, hoping this can be clarified so I can help others avoid the mistake in future.В списке pgsql-sql по дате отправления: