ibase_modify_user
ibase_num_fields
Firebird/InterBase 함수 목록
PHP Manual

# ibase_name_result

(PHP 5)

ibase_name_result — Assigns a name to a result set

### 설명

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

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 = 0; ibase_fetch_row($result); ++$i) {
ibase_execute($updateqry, $i);
}
?>`

### 참고

- ibase_prepare() - Prepare a query for later binding of parameter placeholders and execution
- ibase_execute() - Execute a previously prepared query

ibase_modify_user
ibase_num_fields
Firebird/InterBase 함수 목록
PHP Manual