search

Home  >  Q&A  >  body text

Encountered a pitfall. The teacher did not explain it clearly. If there is no primary key in the array,

If there is no primary key in uptade(), it should be like this:

$abc=Db::table('wei_user')->where('username','Deng Yunchuan')->update([ 'rmb'=>'1231234' ]);

*哥*哥1682 days ago1159

reply all(0)I'll reply

No reply
  • Cancelreply