Environmental Science:
spring cloud + Mybatis-plus + postgresql
Scenario:
Prompt during table insertion
org.postgresql.util.PSQLException: ERROR: syntax error at or near “current_date”
Causes:
current_ Date() is the method of SQL, current_ Date is the method name
resolvent:
current_ Change date to create_ Date (optional here, not the method name)
Analysis process:
The Error statement in XML file and navigator displays current_ Date is green (keyword color)