com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION security.to_date does not exist

Mybatis中的这样写条件时,运行报错

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION security.to_date does not exist_第1张图片

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION security.to_date does not exist

![在这里插入图片描述](https://img-blog.csdnimg.cn/20201024164157167.png#pic_center)

解决:说明使用的to_date不存在或当前版本不支持,换成to_days就可以了

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION security.to_date does not exist_第2张图片

你可能感兴趣的:(1024程序员节,mysql,mybatis,java)