mysql批量添加数据

admin5年前php1207

$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);

}


相关文章

短地址生成,全套配置教程

短地址生成,全套配置教程

nginx 配置location / {rewrite  ^(.*)$  /index.php?s=/$1  last;}code rotoo.top.7z...

php调用chatgpd接口输出

<?php $url = 'https://api.openai.com/v1/completions'; $data = arr...

php下载地址

https://windows.php.net/downloads/releases/archives/...

php设置跨站访问

  php的open_basedir设置多个路径(目录),分隔符是“:”冒号open_basedir=/www/wwwroot/www.ceshi.com/:/tmp/:/www/...

批量插入

一条insert语句批量插入多条记录原创|浏览:138554|更新:2017-12-19 08:21一条insert语句批量插入多条记录常见的insert语句,向数据库中,一条语句只能插入一条数据:i...

php替换函数--数组写法

<?php  $my_name='&&&&'; //echo  substr(xml_entities(...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。