Re: [SQL] Problem with timestamp - Pls help

2003-09-19 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > I think select CAST(CURRENT_TIMESTAMP(0) AS timestamp without time zone) > may get you what you want without having to rely on the text format. If you don't want the time zone, there's also LOCALTIMESTAMP(n). See http://www.postgresql.org/docs/7.3/stati

Re: [SQL] Problem with timestamp - Pls help

2003-09-19 Thread Stephan Szabo
On Fri, 19 Sep 2003, Stephan Szabo wrote: > On Fri, 19 Sep 2003, Kumar wrote: > > > Dear Friends, > > > > I am using Postgres 7.3.4 on Linux server 7.3. > > > > I wanted to update one column of my table with now() or timestamp. And I want that > > timestamp of format > >

Re: [SQL] Problem with timestamp - Pls help

2003-09-19 Thread Tom Lane
"Kumar" <[EMAIL PROTECTED]> writes: > I wanted to update one column of my table with now() or timestamp. And I wa= > nt that timestamp of format > 2003-09-19 18:39:08.13 It sounds like you simply want to limit the fractional precision of the value. Why don't you just dec

Re: [SQL] Problem with timestamp - Pls help

2003-09-19 Thread Stephan Szabo
On Fri, 19 Sep 2003, Kumar wrote: > Dear Friends, > > I am using Postgres 7.3.4 on Linux server 7.3. > > I wanted to update one column of my table with now() or timestamp. And I want that > timestamp of format > 2003-09-19 18:39:08.13 I think select CAST(CURRENT_TIMEST

Re: [SQL] Problem with timestamp - Pls help

2003-09-19 Thread Tomasz Myrta
Dear Friends, I am using Postgres 7.3.4 on Linux server 7.3. I wanted to update one column of my table with now() or timestamp. And I want that timestamp of format 2003-09-19 18:39:08.13 To achieve this I have used the following wats=# select now();

[SQL] Problem with timestamp - Pls help

2003-09-19 Thread Kumar
Dear Friends,   I am using Postgres 7.3.4 on Linux server 7.3.   I wanted to update one column of my table with now() or timestamp. And I want that timestamp of format  2003-09-19 18:39:08.13   To achieve this I have used the following   wats=# select now();  

Re: [SQL] Problem with timestamp

2002-12-11 Thread Henshall, Stuart - Design & Print
Title: RE: [SQL] Problem with timestamp Beatrice Yueksel wrote: > Hello, > > I try to check the time needed by a function. > I would like to : >  . select current_timestamp, >  . execute 5000 times a function >  . select the current_timestamp and return the inte

[SQL] Problem with timestamp

2002-12-11 Thread Beatrice Yueksel
Hello, I try to check the time needed by a function. I would like to : . select current_timestamp, . execute 5000 times a function . select the current_timestamp and return the interval. Problem : the interval is always '00:00', the two timestamps have always the same value. Could you help me ? h

Re: [SQL] Problem with timestamp field/time function.. (upgrading

2002-08-22 Thread Stephan Szabo
On Thu, 22 Aug 2002, Lucas Brasilino wrote: > Hi Stephan > > >>So, how can I get the same result above without using time() ?? > >>Or if it not possible, how can I extract (yes, I tried with extract() > >>function too) time from a timestamp column? > >>I know it's quite simple question..

Re: [SQL] Problem with timestamp field/time function.. (upgrading

2002-08-22 Thread Lucas Brasilino
Hi Stephan >> So, how can I get the same result above without using time() ?? >>Or if it not possible, how can I extract (yes, I tried with extract() >>function too) time from a timestamp column? >> I know it's quite simple question... but I haven't find any clue! >> > > In general you

Re: [SQL] Problem with timestamp field/time function.. (upgrading

2002-08-20 Thread Stephan Szabo
On Tue, 20 Aug 2002, Lucas Brasilino wrote: > I'm running postgresql 7.0 with a column like: > > Table "materia" > Column | Type | Modifiers > +--+--- > > materiadata| timesta

[SQL] Problem with timestamp field/time function.. (upgrading from 7.0 to 7.2.1)

2002-08-20 Thread Lucas Brasilino
Hi All: I've googling around, searching the mailinglist archive and reading FAQ's but I haven't find the answer for my question. And I know it is quite commom! I'm trying upgrading to 7.2.1. I'm running postgresql 7.0 with a column like: Table "materia"