mysql批量添加数据
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
php的function函数内部只能有一个return,之后的代码就都全部运行不正常了...
需要用到PHP自带函数chr()方法如下:$string=str_replace(chr(0x01),"",$string);...
增加$arr[$iy]["pr_count"]+=$pr_count;减少$arr[$iy]["pr_count"]-=$pr_count;删除unset($a...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...
一条insert语句批量插入多条记录原创|浏览:138554|更新:2017-12-19 08:21一条insert语句批量插入多条记录常见的insert语句,向数据库中,一条语句只能插入一条数据:i...
<?php $my_name='&&&&'; //echo substr(xml_entities(...