Posted on February 4th, 2008 by rolode
ada_connect
链接至 Adabas D 数据库。
语法: int ada_connect(string dsn, string user, string password);
返回值: 整数
函数种类: 数据库功能
内容说明
本函数用来链接到 Adabas D 数据库,返回值为链接的代号 ID 值。参数 dsn 为资料来源名称 (Data Sources Name)。参数 user 及 password 分别为链接的帐号及密码。
参考
odbc_connect()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on February 4th, 2008 by rolode
ada_commit
改动 Adabas D 数据库。
语法: int ada_commit(int connection_id);
返回值: 整数
函数种类: 数据库功能
内容说明
本函数用来改动 (commit) Adabas D 数据库。参数 connection_id 为数据库链接的 ID 值。若有配置 ada_autocommit() 成自动改动数据库时,则不需使用本函数。
参考
odbc_commit()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on February 4th, 2008 by rolode
ada_exec
执行 SQL 指令。
语法: int ada_exec(int connection_id, string query);
返回值: 整数
函数种类: 数据库功能
内容说明
本函数用来执行 SQL 的 query 指令。参数 connection_id 为 Adabas D 链接代号 ID 值。参数 query 则为欲执行的指令。返回值为 Result ID 值。
参考
odbc_exec()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on February 4th, 2008 by rolode
ada_close
关闭 Adabas D 链接。
语法: void ada_close(int connection_id);
返回值: 无
函数种类: 数据库功能
内容说明
本函数用来关闭与 Adabas D 数据库之间的链接。参数 connection_id 为数据库链接代号 ID 值。若正在执行 transactions 则无法关闭链接。
参考
odbc_close()
Filed under: PHP 技术 学习 教程 | No Comments »