Re: How can I replace the year of the created_at column with the current year dynamically ?
В списке pgsql-general по дате отправления:
| От | Steve Crawford |
|---|---|
| Тема | Re: How can I replace the year of the created_at column with the current year dynamically ? |
| Дата | |
| Msg-id | 53B42873.3070105@pinpointresearch.com обсуждение исходный текст |
| Ответ на | How can I replace the year of the created_at column with the current year dynamically ? (Arup Rakshit <aruprakshit@rocketmail.com>) |
| Ответы |
Re: How can I replace the year of the created_at column with the current year dynamically ?
|
| Список | pgsql-general |
Here is my try :staging::=> select to_char(created_at,'DD/MM') || '/' || to_char(now(),'YYYY') as when from users;when------------24/02/2014...20/02/2014(15 rows)Can the same be done using any other clever trick ?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера