Query TIME ZONE

Поиск
Список
Период
Сортировка
От Raman
Тема Query TIME ZONE
Дата
Msg-id 003c01c3e55e$54b12d50$d4c7a8c0@raman
обсуждение исходный текст
Ответы Re: Query TIME ZONE
Список pgsql-sql
Hi All,
I have a query regarding Time Zone Interval
 
QUERY:
"select current_time AT TIME ZONE INTERVAL '+5:30'"
it is running fine
 
BUT
When I take the value of interval from DB table like:
 
"select current_time AT TIME ZONE INTERVAL time_difference from customer_events"
 
here : time_difference - is my varchar column in the table customer_events. This gives me errors " parse error at or near "time_difference" at character 43 "
 
I tried to type cast it time_difference::text etc but it in vain.
 
Pls help me ... its realy urgent.
 
Thanks in advance
 
Raman Garg
 
 
 
 
 
 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: postgreSQl 7.4.1 and Hibernate
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Query TIME ZONE