韓順平php使用mysqli的mysqi::multi_query() 一次性查詢並顯示多表結構和內容

<?php //1.得到musqli對象 $mysqli=new MYSQLi("localhost","root","hsp123","test"); //2.批量查詢 $sqls="select*from emp"; $sqls.="select*from user1"; //3.處理結果 //如果成功,則至少有一個結果集 if($res=$mysqli->query($sqls)){ do{
相關文章
相關標籤/搜索