比如
String sql = "update user set ? = ? - 1 where name = ? ";
(sql,"coins","coins","tom");
如果我执行类似的语句会报错
check the manual that corresponds to your MySQL server version for the right syntax to use near ' ' coins' = 'coins' - 1 where name = 'tom' '
我想知道通过?传参是不能指定列名吗?
如果可以是我sql语句写错了吗?