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 | 1372F1F9D99D49E49F4E08BA27D34A17@andrusnotebook обсуждение исходный текст |
| Ответ на | Re: column "id" is of type integer but expression is of type character (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: column "id" is of type integer but expression is of
type character
|
| Список | pgsql-general |
Richard, > Don't use SELECT * - list the columns you want to insert. I can't think > why you would do that (you'll end up with nulls in the id column) but it > will work. In real table id is defined as id serial primary key so I excpect that it will be populated with correct values. List of columns are not exactly known at script creation time (in customer sites customers may add additional columns to table), so using column list is not possible. Ony way seems to generates SELECT column list dynamically at run time, but I'm looking for nicer solution to force PostgreSql to match columns by name. Andrus.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера