私はこのようなクエリを書きたい:
UPDATE `test_credit`
SET `test_credit`.`credit`=(`test_credit`.`credit`-((`test_credit`.`credit`/100)*5))
WHERE `test_credit`.`name` = `users`.`uname`
実際、私は でクエリを取得したいと考えていますusers
。uname
= test_credit
. name
しかし、mysqlはエラーがあり、実現していると言っていますusers
。uname
列として
正しいクエリは何ですか?