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

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_第1张图片

你可能感兴趣的:(Java偶遇问题)