UPDATE with multiple WHERE conditions

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема UPDATE with multiple WHERE conditions
Дата
Msg-id c9cf4869-9d6d-7165-3f9f-611446bf961@appl-ecosys.com
обсуждение исходный текст
Ответы Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
Список pgsql-general
I have a table with 3492 rows. I want to update a boolean column from
'false' to 'true' for 295 rows based on the value of another column.

Is there a way to access a file with those condition values? If not, should
I create a temporary table with one column containing those values, or do I
write a psql script with 295 lines, one for each row to be updated?

TIA,

Rich



В списке pgsql-general по дате отправления:

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Definging columns for INSERT statements
Следующее
От: Muhammad Salahuddin Manzoor
Дата:
Сообщение: Re: UPDATE with multiple WHERE conditions