更新

2018-11-27 16:04 更新

更新指定記錄

//@$param $where 條件 //@$param $update 需要更新的字段 $db->table_name()->where($where)->update($update);

如何知道更新結(jié)果?

update 操作返回的是pdo stmt 對(duì)象 $db->table_name()->where($where)->update($update)->rowCount();


//以此知道更新受影響的條數(shù)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)