1
#1064 - 您的SQL语法错误;检查对应于你的MySQL服务器版本使用附近的“FROM tb_users INNER JOIN tb_ph ON tb_ph.username = tb_users.username WHERE tb_ph.r”在行1使用INNER JOIN的sql查询错误
我得到上面这个错误正确的语法手册当试图运行下面的查询时
UPDATE tb_users
SET tb_users.tgh = tb_ph.readygh,
tb_users.readygh = tb_ph.readygh * 0.25,
tb_users.profitbalance = tb_ph.readygh - (tb_ph.readygh * 0.25)
FROM tb_users
INNER JOIN tb_ph ON tb_ph.username=tb_users.username
WHERE tb_ph.readygh = tb_ph.paket + (tb_ph.paket*0.6)
and tb_users.username=tb_ph.username
如何解决?
感谢兄弟。有效。很好的学习。 –