PHP完全中文操作手冊

天地JPLOP | PHP首頁 | 函數索引
函數:ifx_fieldtypes()

ifx_fieldtypes

列出 Informix 的 SQL 字段。

語法: array ifx_fieldtypes(int result_id);

返回值: 數組

函數種類: 數據庫功能

內容說明

本函數可以獲得 Informix 的 SQL 指令返回的字段。參數 result_id 是經過 ifx_query()ifx_prepare() 的返回代號。

使用範例

本例為程序的一部份

<?php
$types
= ifx_fieldtypes($resultid);
if (! isset(
$types)) {
// 錯誤處理
}
for (
$i = 0; $i < count($types); $i++) {
$fname = key($types);
printf("%s :\t 類型為: %s\n", $fname, $types[$fname]);
next($types);
}
?>



整理: 夕垌菪姬 (天地JPLOP)

[ 上一頁 回主目錄 下一頁 ]
版權所有,天地JPLOP、爵堤亞(夕垌菪姬)。網頁背景音樂和各鍊結標題
及鍊結內容和文章小說,版面編排皆歸原權利人所有對本版面
有任何意見或指教,歡迎至論壇指教。