| От | Bruno Wolff III |
|---|---|
| Тема | Re: changing field length |
| Дата | |
| Msg-id | 20030820151831.GA13575@wolff.to обсуждение |
| Ответ на | Re: changing field length (Jodi Kanter <jkanter@virginia.edu>) |
| Список | pgsql-admin |
On Wed, Aug 20, 2003 at 11:16:18 -0400, Jodi Kanter <jkanter@virginia.edu> wrote: > Ok. so for now I want to return to where I started. so I renamed the > table and regenerated my original table with the fields in the order > that I like. I cannot just do a > insert into table select * from other_table; > because the fields are in a different order. > Can I do this by listing the fields in my insert in the order in which I > want them placed? Yes. Instead of using '*' list the columns from the table that currently has the data in the order that they appear in the table that is currently empty.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера