ORA-01830: date format picture ends before converting entire input string / Select sum where date query

后端 未结 6 1585
梦谈多话
梦谈多话 2020-12-04 22:17

I am trying to execute my query through Java like this:

public ResultSet execSumStatment2() throws SQLException{
String query = \"Select SUM(A) as NCCSeptemb         


        
6条回答
  •  失恋的感觉
    2020-12-04 22:49

    I think you should not rely on the implicit conversion. It is a bad practice.

    Instead you should try like this:

    datenum >= to_date('11/26/2013','mm/dd/yyyy')
    

    or like

    datenum >= date '2013-09-01'
    

提交回复
热议问题