輸入待尋字串
  <?php
  require("http://php.wilson.gs");  // 回首頁
  echo "http://php.wilson.gs/bible/function.php : 函式:mysql_fetch_field()";


函式:mysql_fetch_field()


mysql_fetch_field

取得欄位資訊。

語法: object mysql_fetch_field(int result, int [field_offset]);

傳回值: 物件

函式種類: 資料庫功能

內容說明

本函式傳回的物件資料為 result 的欄位 (Column) 資訊。傳回物件的屬性如下:

  • name - 欄位名稱
  • table - 欄位所在表格的資料表名稱
  • max_length - 欄位的最大長度
  • not_null - 若為 1 表示本欄位不能是空的 (null)
  • primary_key - 若為 1 表示本欄位是主要鍵 (primary key)
  • unique_key - 若為 1 表示本欄位為不可重覆鍵 (unique key)
  • multiple_key - 若為 1 表示本欄位為可重覆鍵 (non-unique key)
  • numeric - 若為 1 表示本欄位為數字型態 (numeric)
  • blob - 若為 1 表示本欄位為位元型態 (BLOB)
  • type - 欄位型態
  • unsigned - 若為 1 表示本欄位為無記號 (unsigned)
  • zerofill - 若為 1 表示本欄位為被零填滿 (zero-filled)

參考

mysql_field_seek()  


[ 上一頁 /bible/function.php 下一頁 ]



本站置於 NEC BIGLOBE 地球村網際網路  echo "Copyright © 1999-2001, Wilson Peng";  //隱私權保護政策
  mail("wilson@biglobe.net.tw", "Feedback", $message);
  ?>