krot

Yii2 batch

Mar 27th, 2018
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $dr=Yii::$app->db2->createCommand($sql)->query();
  2. while ($row = $dr->read()){
  3.     print_r($row);
  4.    
  5. }
RAW Paste Data