0 cakephp
我在更新查询期间遇到问题.
模型代码
public function resetpassword($key,$password)
{
$aresetpassword = $this->updateAll(array('Register.password'=>$password), array('Register.key'=>$key));
return($aresetpassword);
}
Run Code Online (Sandbox Code Playgroud)
查看页面错误
错误:SQLSTATE [42S22]:找不到列:1054未知列''字段列表'中的'8815061c1a6c63398b9a2dfb1f44aae89dd59bfd'
SQL查询:
UPDATE `milgyonu_mber`.`registers` AS `Register`
SET `Register`.`password` = 8815061c1a6c63398b9a2dfb1f44aae89dd59bfd
WHERE `Register`.`key` = '656abe3991a51c62e860b8d1401e4f49'
Run Code Online (Sandbox Code Playgroud)
事件密码字段存在于我的表中.