| От | Richard Huxton |
|---|---|
| Тема | Re: Updating column to link one table to another |
| Дата | |
| Msg-id | 41C697B8.9030700@archonet.com обсуждение исходный текст |
| Ответ на | Updating column to link one table to another (Mark Collette <mark@hyperbyte.ab.ca>) |
| Список | pgsql-sql |
Mark Collette wrote: > > Now, I've added the infrequentId columns to both, as an optimization, so > that I can quickly find the InfrequentTable entry for a given > FrequentTable entry. I've done this because I want to speed up > SELECTs. Any new INSERTs are working just fine. But, all my legacy > entries, are not linked up yet. I need to know how I can UPDATE the > FrequentTable rows, where their infrequentId is zero, to point at the > last InfrequentTable entry whose timestamp ts is before its own > timestamp ts. How do you distinguish between InfrequentTable entries when their timestamp is the same? -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера