Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 249 Bytes

update.md

File metadata and controls

13 lines (11 loc) · 249 Bytes

Update

$mysql->update()
->table('t1', 'test1')
->joinLeft('t2', 'test2', 't1.id = t2.test_id')
->setAll($data)
->where("t1.field1 = ? OR t2.field2 > ?", 1, 10)
->where("field IN (?)", [1, 2, 3, 4, 5, 6])
->run();

Back