Simple Oracle query: literal does not match format string

前端 未结 4 1381
清酒与你
清酒与你 2020-12-21 13:18

I want to execute a simple function in Oracle. The signature is defined as follows:

CREATE OR REPLACE FUNCTION NewCaseListForValidation
(
                            


        
4条回答
  •  天涯浪人
    2020-12-21 14:08

    An alternative to the to_date() function is to use the ANSI standard format for DATE or TIMESTAMP literals:

    DATE '2010-01-31'
    TIMESTAMP '2010-01-31 21:22:23'

    Date and time is always specified using ISO rules (YYYY-MM-DD and 24hour format for time)

    This also works on a lot of other (standard compliant) DBMS.

提交回复
热议问题