PHP 5.6.0 released

odbc_field_type

(PHP 4, PHP 5)

odbc_field_typeTipo di dato di campo

Descrizione

string odbc_field_type ( resource $id_risultato , int $numero_campo )

La funzione odbc_field_type() restituisce il tipo di dato SQL del campo indicato dal numero all'interno di un set di righe referenziate dall'identificativo di risultato ODBC passato. La numerazione delle colonne parte da 1.

add a note add a note

User Contributed Notes 4 notes

up
0
jschwartz at the-infoshop dot com
5 years ago
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.
up
0
jorge dot emailNOSPAM at gmail dot com
7 years ago
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
up
0
not[at]wgpower[dot]net
8 years ago
Some fields can be of the following type too : REAL
up
0
jazper at lycos dot de
12 years ago
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.
To Top