GetType - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Result

  

GetType

  

get the SQL type of a column

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

result:-GetType( index )

Parameters

result

-

Result module

index

-

integer or string; the column for which the type is returned

Description

• 

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.

Examples

Create a Result.

driverDatabaseLoadDriver:

conndriver:-OpenConnectionurl,name,pass:resconn:-ExecuteQuerySELECT name FROM animals:res:-GetType1

INTEGER

(1)

res:-GetType2

VARCHAR

(2)

res:-GetType3

INTEGER

(3)

res:-GetType4

DOUBLE

(4)

res:-GetTypeid

INTEGER

(5)

res:-GetTypename

VARCHAR

(6)

res:-GetTypenumber

INTEGER

(7)

res:-GetTypemass

DOUBLE

(8)

See Also

Database

Database[Result]

Database[Result][GotoRow]

Database[Result][Last]

Database[Result][Next]

Database[Result][Previous]

Database[usage]