pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raman <ramang@smartdatainc.com>
To: pgsql-sql@postgresql.org
Subject: Query TIME ZONE
Date: Wed, 28 Jan 2004 10:49:37 +0530
Message-ID: <003c01c3e55e$54b12d50$d4c7a8c0@raman> (raw)

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

view thread (3+ messages)  latest in thread

Message-ID: <003c01c3e55e$54b12d50$d4c7a8c0@raman>
Permalink:  ../003c01c3e55e$54b12d50$d4c7a8c0@raman/
Also on:    postgresql.org/message-id/003c01c3e55e$54b12d50$d4c7a8c0@raman

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ramang@smartdatainc.com
  Subject: Re: Query TIME ZONE
  In-Reply-To: <003c01c3e55e$54b12d50$d4c7a8c0@raman>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox