| От | Jurgen Defurne |
|---|---|
| Тема | Re: Timestamp and compatiblity with MySQL |
| Дата | |
| Msg-id | 3947BB06.C02AD431@glo.be обсуждение исходный текст |
| Ответ на | Timestamp and compatiblity with MySQL (Daniel Mendyke <daniel@clacknet.com>) |
| Список | pgsql-general |
Daniel Mendyke wrote: > My application (in perl) has to portible > > between both MySQL and Postgres. Most of > > the work is rather easy, but I'm having > > trouble with TIMESTAMP. > > MySQL allows me to use DATE_FORMAT( col_name, '%D %M %Y' ) > > to format the data. What function or method does Postgres > > provide for formating timestamp data? > > Thanks. > > -Daniel > > -- > > To reach me remove the 'nospam.' > my address is 'daniel at clacknet dot com' Since postgreSQL time information is an integer, you don't need to format timestamp data when inserting. All you need to do is obtain somewhere your time information. The formatting needs only to be done on retrieving the data. Jurgen Defurne defurnj@glo.be
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера