| От | Richard Huxton |
|---|---|
| Тема | Re: Insert into a date field |
| Дата | |
| Msg-id | 45C338BD.8000406@archonet.com обсуждение исходный текст |
| Ответ на | Insert into a date field ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>) |
| Ответы |
Re: Insert into a date field
|
| Список | pgsql-sql |
Ezequias Rodrigues da Rocha wrote: > Hi list, > > I am trying to insert a record in a table with a date field but the > postgresql reports me the following error: > > ERROR: column "data_nascimento" is of type date but expression is of type > integer > SQL state: 42804 > Hint: You will need to rewrite or cast the expression. > > > I tryed like this: > > > '1963-09-01' > '1963-09-01'::date > 1963-09-01 Show us the whole statement - this doesn't look like the error to me. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера