文章详情页
为什么更新创建不了
浏览:212日期:2022-06-05 10:37:36
问题描述
$result = Staff::update([
'name'=>'武松',
],['id'=>1045]);
if ($result){ return $result->name.'更新成功';
}else{
return $result->getError();
}
问题解答
回答1:可以贴一下完整的代码吗 或者可以参考一下 https://www.php.cn/php/php-update-method.html
相关文章:
1. python - scrapy url去重2. mysql - python如何给微信小程序写后台?3. python callable的理解4. python - xpath提取网页路径没问题,但是缺失内容?5. sass - gem install compass 使用淘宝 Ruby 安装失败,出现 4046. mysql数据库每次查询是一条线程吗?7. Python pyinstaller 打包后在其他电脑运行失败8. python - TypeError: tryMsgcode() takes exactly 2 arguments (0 given)9. 使用python的wmi进行远程连接的时候报错10. python爬虫 - scrapy使用redis的时候,redis需要进行一些设置吗?
排行榜

网公网安备