|
wb_field_type | Information about Cursors | wb_num_fields |
This function returns the SQL type number of the column specified by name and cursor position number. This function returns one of the ATT_XXX constant types that correspond with the retrieved SQL type.
You may also get the name of the column SQL type with the wb_field_type function.
The PHP module defines the ATT_XXX constants (ATT_BOOLEAN, ATT_CHAR, ATT_INT16, ATT_INT32, ATT_FLOAT, ATT_STRING, ATT_BINARY, ATT_DATE, ATT_TIME, ATT_TIMESTAMP, ATT_TEXT, ATT_NOSPEC, ATT_INT8, ATT_INT64) that can be compared with the return value of this function.
The 602SQL Server type list can be found on the 602SQL Server data types page.
Number of the column SQL type or FALSE if an error occurs.
Get the SQL type number of the third column in the $cursor cursor:
$result = wb_field_type_num($cursor,3); if( $result==FALSE ) { ... } else { echo "type number: ",$result; }
wb_field_type | Information about Cursors | wb_num_fields |