Open lovejoy opened 5 years ago
https://blog.spider.im/2013/01/11/insert-sql-in-yii/
虽然yii提供有插入数据库的功能,但性能上不确定,所以一般我还是自己抽象个出来 public static function insert($tblName,$props = array()){ $sql = 'insert into '.$tblName.'('; $valuesSql = 'values(';
https://blog.spider.im/2013/01/11/insert-sql-in-yii/
虽然yii提供有插入数据库的功能,但性能上不确定,所以一般我还是自己抽象个出来 public static function insert($tblName,$props = array()){ $sql = 'insert into '.$tblName.'('; $valuesSql = 'values(';