execute();这两句话是可以重复执行的,即可以用for循环包起来,不用每次都去编译运行就可以添加多个数据"/> execute();这两句话是可以重复执行的,即可以用for循环包起来,不用每次都去编译运行就可以添加多个数据">

Home  >  Article  >  Backend Development  >  php中预加工案例分析总结

php中预加工案例分析总结

WBOY
WBOYOriginal
2016-06-13 11:36:021016browse

php中预处理案例分析总结

首先来看一个预处理代码演示:



其中$mysqli_stmt->bing_param("sssi",$name,$password,$email,$age);

$b=$mysqli_stmt->execute();这两句话是可以重复执行的,即可以用for循环包起来,不用每次都去编译运行就可以添加多个数据进数据库。

关于MySql预编译的效率问题我看到一篇文章写的挺好的,不妨参考一下:

http://www.jb51.net/article/28019.htm

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn