Re: solved

From: liu__liu(at)hotmail(dot)com (liu)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: solved
Date: 2002-10-25 17:49:40
Message-ID: 9fe822f7.0210250949.49b41400@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I solve the problem, it is a programming error,

timestamp '1970-01-01 00:00:00'+interval '? seconds'
seems not working through

liu__liu(at)hotmail(dot)com (liu) wrote in message news:<9fe822f7(dot)0210241552(dot)292c4a3a(at)posting(dot)google(dot)com>...
> in VC++, I need to update a timestamp field with a C++ timestamp(the
> seconds
> after 19700101), my SQL is like
> UPDATE my_table SET time_field=timestamp '1970-01-01
> 00:00:00'+interval '1 seconds' * ?
> OR
> UPDATE my_table SET time_field=timestamp '1970-01-01
> 00:00:00'+interval '? seconds'
>
> then pass in the timestamp as integer parameter,
> both works when I use constant instead of parameter, but the parameter
> is not
> working, how can I pass the timestamp in then?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hervé Piedvache 2002-10-25 17:54:40 Re: question about seq scan and index scan
Previous Message PD Miller 2002-10-25 17:26:58 Re: left() in postgres