PHP 4完全中文手册 我形我塑相册 家园常用软件下载 我形我塑相册活动专区 给我留言 我形我塑网站首页
我形我塑,网络相册,www.5x54.com 相册 相册 心情相册,少女相册 免费申请,我形我塑免费相册
 PHP 4 完全中文手册   http://www.5x54.com
 

 


函数:odbc_connect()


odbc_connect

链接至 ODBC 数据库。

语法: int odbc_connect(string dsn, string user, string password, int [cursor_type]);

返回值: 整数

函数种类: 数据库功能

内容说明

本函数用来链接到 ODBC 数据库,返回值为链接的代号 ID 值。参数 dsn 为资料来源名称 (Data Sources Name)。参数 user 及 password 分别为链接的帐号及密码。参数 cursor_type 通常省略,其值有 SQL_CUR_USE_IF_NEEDED、SQL_CUR_USE_ODBC、SQL_CUR_USE_DRIVER 及 SQL_CUR_DEFAULT 等四种。当使用复杂的资料存取时可能会有类似 "Cannot open a cursor on a stored procedure that has anything other than a single select statement in it" 的错误信息字符串,此时若将参数 cursor_type 的值设为 SQL_CUR_USE_ODBC 就可以避开了。

参考

odbc_pconnect()  


[ 上一页 下一页 ]