多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` $mysql = Db::getInstance()->init('pool'); ``` #### insert(array $data, $buildSql = false) ,单条插入,返回插入后的id号 ``` $data = $mysql->table('table')->insert([ 'uid' => 123, 'type' => 1, 'currency' => 10 ]); ``` #### insertAll(array $data, $buildSql = false),批量插入,返回插入的总条数 ``` $data = [ ['uid' => 123,'type' => 1,'currency' => 10], ['uid' => 222,'type' => 2,'currency' => 20] ]; $mysql->table('table')->insertAll($data); ```