我有以下mysql语句,有没有简单的访问方法result_value
?我想在 php 变量中的查询之外获取当前语句中设置的值。我应该做mysql fetch array吗?
UPDATE results
SET result_value = IF('$logo_value' - result_tries < 0 OR '$logo_value' - result_tries = 0, 1, '$logo_value' - result_tries)
WHERE logo_id = '$logo_id'
AND user_id = '$user_id'
AND result_value = 0"