网站首页

>>

PHP初级教程手册


函数:solid_connect()



solid_connect

链接至 solid 数据库。

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

返回值: 整数

函数种类: 数据库功能

内容说明

本函数用来链接到 solid 数据库,返回值为链接的代号 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 就可以避开了。



整理: (www.phpernote.com)

[ 上一页 下一页 ]

|