org.apache.ibatis.exceptions.PersistenceException:

### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and jobs= 'teacher'' at line 6

### The error may exist in com/itheima/mapper/CustomerMapper.xml

### The error may involve com.itheima.mapper.CustomerMapper.findCustomerByNameAndJobs-Inline

### The error occurred while setting parameters

### SQL: select * from t_customer where 1=1        and username like concat('%',#username,'%')                 and jobs= ?

### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and jobs= 'teacher'' at line 6

 

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corre

相关文章:

  • 2021-11-22
  • 2021-06-27
  • 2021-12-20
  • 2021-09-03
  • 2023-02-04
  • 2021-10-09
  • 2021-05-31
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-04-27
相关资源
相似解决方案