問題描述
mysqli::query
和 mysqli::real_query
有什么區(qū)別?
或
mysqli_query
和 mysqli_real_query
有什么區(qū)別?
推薦答案
查看mysqli_query<的文檔/a>():
Look at the documentation of mysqli_query():
功能上,使用該函數(shù)與調(diào)用mysqli_real_query() 后跟 mysqli_use_result() 或mysqli_store_result().
Functionally, using this function is identical to calling mysqli_real_query() followed either by mysqli_use_result() or mysqli_store_result().
據(jù)我所知,real_query 實(shí)際上執(zhí)行查詢,而 use/store_result 啟動(dòng)檢索查詢結(jié)果集的過程.query() 兩者都做.
From what I understand real_query actually executes the query, and use/store_result initiates the process of retrieving a result set for the query. query() does both.
這篇關(guān)于mysqli_query 和 mysqli_real_query 的區(qū)別的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!