Re: converting varchar date strings to date - Mailing list pgsql-general

From pw
Subject Re: converting varchar date strings to date
Date
Msg-id 003201c39282$8d6a3ee0$0f01a8c0@peter
Whole thread Raw
In response to Re: converting varchar date strings to date  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Hello,

This has been resolved.
As I told a previous poster, CAST() wasn't working.
I have no idea why.

I finally used:

UPDATE inventory SET date_field=date(vc_year||'-'||vc_month||'-'||vc_day );

Peter


> pw writes:
>
> > How can I typecast a date generated from VARCHAR fields into
> > a date field
>
> Using CAST().
>
> --
> Peter Eisentraut   peter_e@gmx.net
>
>


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: How to list which tables are available?
Next
From: Sean Chittenden
Date:
Subject: Re: int1?