函式:odbc_pconnect() |
odbc_pconnect长期连结至 ODBC 资料库。 语法: int odbc_pconnect(string dsn, string user, string password, int [cursor_type]); 传回值: 整数 函式种类: 资料库功能
本函式用来保持长期连结连结到 ODBC 资料库,即使 PHP 程式结束,连结仍然存在,传回值为连结的代号 ID 值。这对连结负责很重的系统可以加快连结的速度。参数 dsn 为资料来源名称 (Data Sources Name)。参数 user 及 password 分别为连结的帐号及密码。参数 cursor_type 通常省略。
|