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: inserting a date/time default into a column

Re: inserting a date/time default into a column

From: James Petts <jpetts_at_celltech.co.uk>
Date: 1998/01/20
Message-ID: <34C4D07B.617A@celltech.co.uk>#1/1

Laura Bellini wrote:

> default of 1/1/1998 08:00 (am) into a date column.
>

When you create the column in the table use something like:

CREATE TABLE FOO(
    BAR INTEGER,
    TRUND DATE DEFAULT TO_DATE('01/01/1998 08:00','MM/DD/YYYY HH24:MI')    );

BTW, the email address you set as the Reply-To: has an error. There is a right square bracket between .com and >

-- 
James "I'd rather fall off Ilustrada than ride any other horse" Petts
Received on Tue Jan 20 1998 - 00:00:00 CST

Original text of this message

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