ibase_name_result

(PHP 5, PHP 7)

ibase_name_resultAssigns a name to a result set

说明

ibase_name_result ( resource $result , string $name ) : bool

This function assigns a name to a result set. This name can be used later in UPDATE|DELETE ... WHERE CURRENT OF name statements.

参数

result

An InterBase result set.

name

The name to be assigned.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

Example #1 ibase_name_result() example

<?php
$result 
ibase_query("SELECT field1,field2 FROM table FOR UPDATE");
ibase_name_result($result"my_cursor");

$updateqry ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor");

for (
$i 0ibase_fetch_row($result); ++$i) {
    
ibase_execute($updateqry$i);
}
?>

参见

相关文章
php ibm db2 函数 returns an array indexed by column name representing a row in a result setphp ibm db2 函数 returns an array indexed by both column name and position representing a row in a result setphp ibm db2 函数 sets the result set pointer to the next row or requested rowphp ibm db2 函数 returns the name of the column in the result setphp ibm db2 函数 returns the number of fields contained in a result setphp ibm db2 函数 returns a result set listing the tables and associated privileges in a databasephp ibm db2 函数 returns a result set listing the tables and associated metadata in a databasephp frontbase 函数 get or set the host name used with a connectionphp firebird/interbase 函数 output blob contents to browserphp firebird/interbase 函数 fetch a result row from a query as an associative arrayphp firebird/interbase 函数 get an object from a interbase databasephp firebird/interbase 函数 free a result setphp firebird/interbase 函数 assigns a name to a result setphp firebird/interbase 函数 get the number of fields in a result setphp firebird/interbase 函数 initiates a restore task in the service manager and returns immediatelyphp ingres 函数 get the name of a field in a query resultphp maxdb 函数 initiate a result set retrievalphp sqlite 函数 seek to a particular row number of a buffered result setphp sqlsrv 函数 retrieves the next row of data in a result set as an objectphp sqlsrv 函数 makes the next row in a result set available for reading
关注编程学问公众号