PL/SQL (MOSC)

MOSC Banner

ORA-01861: literal does not match format string

edited Jun 19, 2013 10:44AM in PL/SQL (MOSC) 4 commentsAnswered
Hello,

Application team is getting the below error while running the below sql on oracle 11g, please helps us to fix this issue

Enter value for startd: old 8: where so_start_date between to_date('&&startd'||substr(d.value,-6),'mm/dd/yyyyhh24miss')

new 8: where so_start_date between to_date(''||substr(d.value,-6),'mm/dd/yyyyhh24miss')

old 9: and to_date('&&startd'||substr(d.value,-6),'mm/dd/yyyyhh24miss') +1 - .00000001

new 9: and to_date(''||substr(d.value,-6),'mm/dd/yyyyhh24miss') +1 - .00000001

and to_date(''||substr(d.value,-6),'mm/dd/yyyyhh24miss') +1 - .00000001

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center