猿问

mysql_query第二个参数是什么意思?

    mysql_query("SET character_set_connection=utf8, character_set_results=utf8, character_set_client=binary", $SESS_DBH);

幕布斯7119047
浏览 762回答 1
1回答

慕田峪7331174

数据库连接,用于告诉mysql_query函数使用哪个mysql连接执行sql语句。官方文档中的描述:The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no such link is found, it will try to create one as if mysql_connect() had been called with no arguments. If no connection is found or established, an E_WARNING level error is generated.
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答