数据库错误Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"
作者:花生_TL007 | 2024-04-29 13:18:48
赞
踩
syntax error at or near "where
### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"
位置:81
### The error may exist in class path resource [mybatis/mapper/Changes.xml]
### The error may involve com.huawei.promethues.demo.dao.ChangesDao.selectChangeCount-Inline
### The error occurred while setting parameters
### SQL: SELECT DISTINCT count(*) FROM SUB_CHANGE_ORDER_DO where STATUS !='ready' WHERE GMT_CREATED>=? and and GMT_CREATED <= ? AND CHANGE_ORDER_TYPE=?
### Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "WHERE"