column name order matters in insert into foo from bar

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема column name order matters in insert into foo from bar
Дата
Msg-id 2f4958ff0812040515j67112cdejdc54f29365805a46@mail.gmail.com
обсуждение исходный текст
Ответы Re: column name order matters in insert into foo from bar
Список pgsql-general
hey,

it looks , as if when I have two tables, say
create table foo(
  a int,
  b varchar,
  c float
);

and :

create table bar(
  b varchar,
  a int,
  c float
);

migration of data from one to the other using

insert into foo select * from bar; will fail.
How can I walk around that please ?

--
GJ

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

Предыдущее
От: "Grzegorz Jaśkiewicz"
Дата:
Сообщение: Re: psql verbose mode
Следующее
От: "Grzegorz Jaśkiewicz"
Дата:
Сообщение: Re: column name order matters in insert into foo from bar