Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Date Columns

Re: Date Columns

From: Jason Salter <jason_at_seahorseNOSPAM.demon.co.uk>
Date: Thu, 14 Oct 1999 18:32:48 +0100
Message-ID: <ghEGOOz3GaKt4Ldm=J71OzZRd2Qe@4ax.com>


On Thu, 14 Oct 1999 10:46:52 -0400, "Brandon Duncan" <BDuncan_at_PIETECHNET.com> wrote:

>Does anyone know the correct syntax to get a Date Column in the format
>'MM/DD/YYYY' (01/01/1999)?
>
>I'm using
> Create Table XTable (
> DateColumn DATE (10, 'MM/DD/YYYY'),
>......
>
>I get an error message, 'Missing right parenthisis."
>
>Any ideas?
>
>Brandon
>

Just create the table with :-

CREATE TABLE xtable (
 DateColumn DATE,
.... );

And then format the column when you perform a selection :-

SELECT to_char(DateColumn,'MM/DD/YYYY') from xtable;

Jason. Received on Thu Oct 14 1999 - 12:32:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US