| От | Richard Huxton |
|---|---|
| Тема | Re: Normalising an existing table - how? |
| Дата | |
| Msg-id | 40DBE463.7060308@archonet.com обсуждение исходный текст |
| Ответ на | Re: Normalising an existing table - how? (Graham Leggett <minfrin@sharp.fm>) |
| Ответы |
Re: Normalising an existing table - how?
|
| Список | pgsql-sql |
Graham Leggett wrote: > Frank Bax wrote: > >> Do all three steps in one command: >> >> create table newtable as (select key1, key2, money from oldtable); > > > How would I put the primary key of each row in newtable back into > oldtable? Also, newtable already exists and contains data - I need to > add normalised data to an already partially normalised database. How can newtable contain data if you don't have any keys for it? Perhaps a fuller example, with the schemas of the tables in question would help. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера