略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ibase_name_result

2024-04-29

ibase_name_result

(PHP 5, PHP 7 < 7.4.0)

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

范例

示例 #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);
}
?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.ibase-name-result.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3