msql_select_db

(PHP 3, PHP 4, PHP 5)

msql_select_db -- Select mSQL database

说明

bool msql_select_db ( string database_name [, resource link_identifier] )

msql_select_db() sets the current active database on the server that's associated with the specified link_identifier.

Subsequent calls to msql_query() will be made on the active database.

参数

database_name

The database name.

link_identifier

mSQL 的连接标识符。如果没有指定,默认使用最后被 msql_connect() 打开的连接。如果没有找到该连接,函数会尝试通过调用 msql_connect() 建立连接并使用它。

返回值

如果成功则返回 TRUE,失败则返回 FALSE


add a note add a note User Contributed Notes
There are no user contributed notes for this page.