Returns the column ID of the named column.
Visual Basic Public Function GetColumnID( _ ByVal name As String _ ) As Short
C# public short GetColumnID( string name );
name The name of the column.
The column ID of the named column.
Column IDs range from 0 to ColumnCount-1, inclusive.
Note that in result sets, not all columns have names and not all column names are unique. If you are not using aliases, the name of a non-computed column is prefixed with the name of the table the column is from. For example, MyTable.ID is the name of the only column in the result set for the query "SELECT ID FROM MyTable".
Column IDs and counts might change during a schema upgrade. To correctly identify a column, access it by name or refresh the cached IDs and counts after a schema upgrade.
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|