Simple Oracle query: literal does not match format string

前端 未结 4 1380
清酒与你
清酒与你 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 13:55

    It's best not to rely on particular value in NLS_PARAMETERS settings, cause this will make your function break in the env with another NLS_DATE_FORMAT.

    I'd explicitly specify date formatting in your function as suggested in the answer above

    exec :rc := newcaselistforvalidation(to_date('2010-01-01','YYYY-MM-DD'),to_date('2011-01-01','YYYY-MM-DD'),100);
    

提交回复
热议问题