2017年7月14日

thinkphp 多数据插入

摘要: public function _initialize(){ $this->m = M('Abc'); } public function add2(){ $sql= "insert into ysn_abc (value) values"; set_time_limit(0); echo date('H:i:s'); for($i=0;$iexecute($sql)... 阅读全文

posted @ 2017-07-14 16:46 炊厨 阅读(202) 评论(0) 推荐(0)

thinkphp3.2.3使用事物

摘要: public function _initialize(){ $this->m = M('Abc'); } public function add4(){ $this->m->startTrans(); $info1 = $this->m->where(array('id'=>100))->find(); $info2 = $this->m->add(array('valu... 阅读全文

posted @ 2017-07-14 10:53 炊厨 阅读(678) 评论(0) 推荐(0)

Mysql MERGE引擎简介 表合并

摘要: Create Table: CREATE TABLE `t1` ( `a` int(11) NOT NULL, PRIMARY KEY (`a`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 Create Table: CREATE TABLE `t2` ( `a` int(11) NOT NULL, PRIMARY KEY (`a`) ) ENGINE=M... 阅读全文

posted @ 2017-07-14 10:44 炊厨 阅读(185) 评论(0) 推荐(0)

导航