当前位置: 首页 > 工具软件 > Ingres > 使用案例 >

php fatch_array删除,PHP - Manual: ingres_fetch_array (官方文档)

竺绍辉
2023-12-01

说明

ingres_fetch_array

( resource $result

[, int $result_type

] ) : array

This function is an extended version of

If two or more columns of the result have the same field names,

the last column will take precedence. To access the another

column or columns of the same name, you must use the numeric index of the

column or make an alias for the column. For example:

$result=ingres_query($link,"select ap_place as city, ap_ccode as country from airport where ap_iatacode = 'VLL'");$result=ingres_fetch_array($result);$foo=$result["city"];$bar=$result["country"];?>

With regard to speed, the function is identical to

By default, arrays created by ingres_fetch_array() start

from position 1 and not 0 as with other DBMS extensions. The starting position

can be adjusted to 0 using the configuration parameter ingres.array_index_start.

 类似资料: