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

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

Re: Date Columns

From: Andreas Köster <AKoester_at_DerPatriot.com>
Date: Fri, 15 Oct 1999 08:02:31 +0200
Message-ID: <3806C377.547A8B6E@DerPatriot.com>


The standard format for the "DATE" datatype is "01-DEC-99". I think its the internal format that oracle uses.
You can set the environment variable "NLS_DATE_FORMAT" to "MM/DD/YYYY". Then even an "select sysdate from dual" should bring you the wanted format.

Andreas Köster

Brandon Duncan schrieb:

> 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
Received on Fri Oct 15 1999 - 01:02:31 CDT

Original text of this message

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