★ wanayoo — archive 1999 http://www.php.net/manual/function.sybase-fetch-field.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sybase
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Sybase
* sybase_affected_rows
* sybase_close
* sybase_connect
* sybase_data_seek
* sybase_fetch_array
* sybase_fetch_field
* sybase_fetch_object
* sybase_fetch_row
* sybase_field_seek
* sybase_free_result
* sybase_num_fields
* sybase_num_rows
* sybase_pconnect
* sybase_query
* sybase_result
* sybase_select_db
Manual: sybase_fetch_field
View the source code for this pageSearch the site



Previous page
 sybase_fetch_array
 Updated
Sat, 12 Aug 2000
sybase_fetch_object 
Next page


sybase_fetch_field

(PHP3 , PHP4 )

sybase_fetch_field -- get field information

Description

object sybase_fetch_field (int result, int field_offset)

Returns an object containing field information.

sybase_fetch_field() can be used in order to obtain information about fields in a certain query result. If the field offset isn't specified, the next field that wasn't yet retreived by sybase_fetch_field() is retreived.

The properties of the object are:

  • name - column name. if the column is a result of a function, this property is set to computed#N, where #N is a serial number.

  • column_source - the table from which the column was taken

  • max_length - maximum length of the column

  • numeric - 1 if the column is numeric

See also sybase_field_seek()


User Contributed Notes: sybase_fetch_field


gray@voicenet.com
15-Oct-1999 03:27
There is one field missing from the description above that seems to be in there (at least as of php-3.0.12).

The 'type' field contains (roughly) the datatype of the source column. Types returned are:

<PRE>
'type' Sybase Type
------- --------------------------
string CHAR, VARCHAR, TEXT
image IMAGE
blob BINARY, VARBINARY
bit BIT
int TINYINT, SMALLINT, INT
real REAL, FLOAT, NUMERIC, DECIMAL
money MONEY
datetime DATETIME, SMALLDATETIME
</PRE>




11-Aug-2000 02:01
use sybase_fetch_field() instead



 About Notes


Previous page
 sybase_fetch_array
 Updated
Sat, 12 Aug 2000
sybase_fetch_object 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.