 |
 |
 |
 |
Warning: include(../levoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ifx-fieldproperties.html on line 46
Warning: include() [ function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ifx-fieldproperties.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 3>= 3.0.3, PHP 4)
ifx_fieldproperties - список свойств SQL-полей. Описаниеarray ifx_fieldproperties (int result_id)
Возвращает ассоциативный массив с именами полей в качестве ключей и свойствами SQL-полей как данными для запроса с
result_id. Возвращает FALSE при ошибке.
Возвращает Informix SQL-fieldproperties каждого поля запроса как ассоциативный массив. Свойства кодированы так:
"SQLTYPE;length;precision;scale;ISNULLABLE", где SQLTYPE = Informix-тип вроде "SQLVCHAR" etc., а ISNULLABLE = "Y" или "N".
Пример 1. Informix SQL fieldproperties
$properties = ifx_fieldproperties ($resultid);
if (! isset($properties)) {
... error ...
}
for ($i = 0; $i < count($properties); $i++) {
$fname = key ($properties);
printf ("%s:\t type = %s\n", $fname, $properties[$fname]);
next ($properties);
} |
|
|  | |
|
 |
 |
 |
 |
Warning: include(../pravoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ifx-fieldproperties.html on line 149
Warning: include() [ function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ifx-fieldproperties.html on line 149
|
 |
 |
 |
 | |