MySQLi
PHP Manual

mysqli::rpl_query_type

mysqli_rpl_query_type

(PHP 5)

mysqli::rpl_query_type -- mysqli_rpl_query_typeReturns RPL query type

说明

面向对象风格

int mysqli::rpl_query_type ( string $query )

过程化风格

int mysqli_rpl_query_type ( mysqli $link , string $query )

Returns MYSQLI_RPL_MASTER, MYSQLI_RPL_SLAVE or MYSQLI_RPL_ADMIN depending on a query type. INSERT, UPDATE and similar are master queries, SELECT is slave, and FLUSH, REPAIR and similar are admin.

Warning

本函数还未编写文档,仅有参数列表。

Warning

自 PHP 5.3.0 起,已经废弃移除此函数。


MySQLi
PHP Manual