downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

odbc_foreignkeys> <odbc_field_scale
Last updated: Fri, 06 Nov 2009

view this page in

odbc_field_type

(PHP 4, PHP 5)

odbc_field_typeTipo de dados de um campo

Descrição

string odbc_field_type ( resource $result_id , int $field_number )

Obtém o tipo SQL do campo referenciado pelo número num dado identificador de resultado.

Parâmetros

result_id

O identificador de resultado.

field_number

O número do campo. Campos numerados a partir de 1.

Valor Retornado

Retorna o tipo do campo como uma string, ou FALSE em erro.



odbc_foreignkeys> <odbc_field_scale
Last updated: Fri, 06 Nov 2009
 
add a note add a note User Contributed Notes
odbc_field_type
jschwartz at the-infoshop dot com
04-Aug-2009 08:40
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.
jorge dot emailNOSPAM at gmail dot com
17-Jan-2007 12: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
not[at]wgpower[dot]net
19-May-2006 12:02
Some fields can be of the following type too : REAL
jazper at lycos dot de
10-Jul-2002 10: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.

odbc_foreignkeys> <odbc_field_scale
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites