| От | Rich Shepard |
|---|---|
| Тема | Re: Updating 457 rows in a table |
| Дата | |
| Msg-id | 9753bd1a-6b25-b2ce-c2cc-aca258febb8@appl-ecosys.com обсуждение исходный текст |
| Ответ на | Re: Updating 457 rows in a table (Ray O'Donnell <ray@rodonnell.ie>) |
| Список | pgsql-general |
On Sun, 19 May 2024, Ray O'Donnell wrote: > Could you create a table with just person_id values whose rows are to be > updated? Then you could do something like this: > > update people set active = true where exists ( > select 1 from temporary_table where person_id = people.person_id > ); > > That's just off the top of my head and might not be correct, but that's the > way I'd be thinking. Ray, I thought of doing this but it's a one-off activity. I would create and insert the table, then delete it when done. Will keep this in mind. Thanks, Rich
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера