| От | brian |
|---|---|
| Тема | Re: issue with an assembled date field |
| Дата | |
| Msg-id | 47C84ACA.5080304@zijn-digital.com обсуждение исходный текст |
| Ответ на | issue with an assembled date field (Chris Bowlby <excalibur@accesswave.ca>) |
| Список | pgsql-general |
Chris Bowlby wrote: > Hi All, > > I am currently running into an issue with a query and would like to get > some assistance if possible. > > The PostgreSQL version I am running is 8.0.11 64-Bit, under SuSE Linux > Enterprise Server 9 SP3 > > I am converting an encoded field (lot_id) into a date field, the 5 > character of every lot_id is always the year and as such I need to > extract the year using the following function: > > substring(ilch.lot_id::text, 5, 1) > > I am not worried about month or day as it is not used in what I need to > do, which is why I am using '01/01' for my main concatenation: > > '01/01/0'::text || ... > You're going to have another problem in about 22 months. b
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера