DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: date problem

  1. #1
    Join Date
    May 2001
    Posts
    41
    i have problem

    can i able to enter date in this format if i set
    nls_date_format = "YYYY-MM-DD HH24:MI:SS"
    in INIT.ORA

    when i am trying to insert the date into table problem

    SQL>create table adate(dats date);
    Table created
    SQL>insert into adate values('2001-02-03 23:42:02');

    ORA -01861 literal does not mach format string


    RAMESH

  2. #2
    Join Date
    Nov 2000
    Location
    Israel
    Posts
    268
    Hi,
    try using
    alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';
    then use the insert into adate values('2001-02-03 23:42:02');

    it works.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width