ORA-01843 not a valid month- Comparing Dates

前端 未结 9 2221
南方客
南方客 2020-12-15 03:49

I have a problem when try to select data from a table filtering by date.

For example:

SELECT * FROM MYTABLE WHERE MYTABLE.DATEIN = \'23         


        
9条回答
  •  离开以前
    2020-12-15 04:44

    If you are using command line tools, then you can also set it in the shell.

    On linux, with a sh type shell, you can do for example:

    export NLS_TIMESTAMP_FORMAT='DD/MON/RR HH24:MI:SSXFF'
    

    Then you can use the command line tools and it will use the specified format:

    /path/to/dbhome_1/bin/sqlldr user/pass@host:port/service control=table.ctl direct=true
    

提交回复
热议问题