Quick note: as noted below, MS Access type AutoNumber comes across as type COUNTER. What I didn't see mentioned is that PHP interprets type COUNTER as a string, not an integer.
More annoying than anything else, in my particular case; but I'd guess it could bite somebody, somewhere.
odbc_field_type
(PHP 4, PHP 5)
odbc_field_type — フィールドのデータ型を返す
説明
string odbc_field_type
( resource $result_id
, int $field_number
)
指定された ODBC 結果 ID において指定番号で参照されるフィールドの SQL 型を取得します。
パラメータ
- result_id
-
結果 ID。
- field_number
-
フィールド番号。フィールド番号は 1 から始まります。
返り値
フィールドの型を表す文字列、あるいはエラー時に FALSE を返します。
odbc_field_type
jschwartz at the-infoshop dot com
05-Aug-2009 05:40
05-Aug-2009 05:40
jorge dot emailNOSPAM at gmail dot com
17-Jan-2007 09:21
17-Jan-2007 09:21
Here is the complete list!
Access 2003 as the following teturntypes:
COUNTER - Autoincrement
VARCHAR - Text
LONGCHAR - Memo
INTEGER - Number
DATETIME - Date/Time
CURRENCY - Currency
BIT - TRUE/FALSE
LONGBINARY - OLE-Object
LONGCHAR - Hyperlink
DOUBLE - Double Number
BYTE - Byte Number
jazper at lycos dot de
11-Jul-2002 07:30
11-Jul-2002 07:30
Returntypes on Access2000
COUNTER - Autoincrement
VARCHAR - Text
LONGCHAR - Memo
INTEGER - Number
DATETIME - Date/Time
CURRENCY - Currency
BIT - TRUE/FALSE
LONGBINARY - OLE-Object
LONGCHAR - Hyperlink
cheers, j.a.z.
