测试类中一直报错,原因是说写的sql语句错误,但是对比之前正确的也没有错啊,百度看了下,别人的是写成中文的,我这里主要出现的错误是id左右带的括号我写成中括号了、、、
update tb_user
set
user_name = #{userName},
password = #{password},
name = #{name},
age = #{age},
sex = #{sex},
birthday = #{birthday},
updated = NOW()
where
{id = #{id};
UPDATE tb_user
SET
user_name = #{userName},
password = #{password},
name = #{name},
age = #{age},
sex = #{sex},
birthday = #{birthday},
updated = NOW()
WHERE
(id = #{id});
相关文章
- 11-28You're seeing this error because you have DEBUG = True in your Django settings file. Change tha
- 11-28Cherry-pick Failed Error merging 。You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).
- 11-28git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
- 11-28解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
- 11-28Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
- 11-28Cherry-pick Failed Error merging 。You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge.
- 11-281064 - You have an error in your SQL syntax;
- 11-28mybatis批量更新update-设置多个字段值 报错 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
- 11-28mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual t
- 11-28错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server vers