Re: column "id" is of type integer but expression is of type character
В списке pgsql-general по дате отправления:
| От | Andrus |
|---|---|
| Тема | Re: column "id" is of type integer but expression is of type character |
| Дата | |
| Msg-id | 93C7A29E99514FE39918995AA1017D6A@andrusnotebook обсуждение |
| Ответ на | Re: column "id" is of type integer but expression is of type character (Raymond O'Donnell <rod@iol.ie>) |
| Ответы |
Re: column "id" is of type integer but expression is of
type character
|
| Список | pgsql-general |
Thank you. > Well, you've dropped the integer column from test, so now the INSERT > command is trying to stuff the char(10) value from test into the integer > column in lisa - which is what the error message is telling you. INSERT INTO test SELECT * FROM lisa; I need that test table primary key column (id) values are populated automatically with new ids from serial sequence, but all other column values are duplicatated. In reality those tables contain large number of columns and some column names may be not known at script creation time. So it is not possible not create column list instead of * How to force PostgreSql to match columns by name, not by position so that this command will work ? Andrus.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера