Result
GetType
get the SQL type of a column
Calling Sequence
Parameters
Description
Examples
result:-GetType( index )
result
-
Result module
index
integer or string; the column for which the type is returned
GetType returns the SQL type of the column indicated by index.
If index is an integer, it is used to index into the current Result module's table. If index is a string, it is the name of the column.
The type returned by GetType can be used in an explicit cast to make Maple perform a particular type conversion. For more information, see conversions.
Create a Result.
driver≔DatabaseLoadDriver⁡:
conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT name FROM animals:res:-GetType⁡1
INTEGER
res:-GetType⁡2
VARCHAR
res:-GetType⁡3
res:-GetType⁡4
DOUBLE
res:-GetType⁡id
res:-GetType⁡name
res:-GetType⁡number
res:-GetType⁡mass
See Also
Database
Database[Result]
Database[Result][GotoRow]
Database[Result][Last]
Database[Result][Next]
Database[Result][Previous]
Database[usage]
Download Help Document