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: HELP - Insert value date format needed

Re: HELP - Insert value date format needed

From: Daniel Reis <dreis_at_capgemini.fr>
Date: Wed, 24 Nov 1999 22:31:00 -0000
Message-ID: <383c67d6@193.126.86.225>


You can also use the ISO (I belive) format :

{d'DD-MM-YYYY'} for dates, {ts'DD-MM-YYYY HH:NN:SS} for timestamps.

This is independent of the database default date.

Daniel Reis

Jerry Gitomer <jgitomer_at_erols.com> wrote in message news:81d9cd$jei$3_at_autumn.news.rcn.net...
> Default date field format is:
>
> DD-MON-YYYY
>
> use:
>
> INSERT INTO <table_name> VALUES ("01-JAN-1970");
>
> hth
> jerry gitomer
>
> Stas Burdan wrote in message <383A17AC.6EF2817_at_mediaone.net>...
> |try this:
> |insert into table (date_field) values ("11-22-1999")
> |use double qoutes.
> |Date format depends on value of NLS_DATE*FORMAT*
> |(if I recall the name of NLS_* coorrectly)
> |
> |- Stas
> |
> |> Hello All,
> |>
> |> I'm new to Oracle and can't locate the syntax for inserting
> data into
> |> a date field. Will someone help me out please? I've tried
> various
> |> combinations of insert into birthday values (1-1-1970); with
> no luck.
> |> I looked in the online help but can't locate this simple
> command.
> |>
> |> Thanks,
> |>
> |> Donell
> |
>
>
Received on Wed Nov 24 1999 - 16:31:00 CST

Original text of this message

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