get the name of a column - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Database Package : Result : Database/Result/GetName

Result:-GetName - get the name of a column

Calling Sequence

result:-GetName( index )

Parameters

result

-

Result module

index

-

integer; the index of the column whose name is being returned

Description

• 

GetName returns the name of the column indicated by index.

• 

index is the index of the column in result's table.

Examples

Create a Result.

driver:=Database[LoadDriver]:

conn:=driver:-OpenConnectionurl,name,pass:res:=conn:-ExecuteQuerySELECT * FROM animals:

Since column names were not specified in the query, they may be in any order.

res:-GetName1

mass

(1)

res:-GetName2

number

(2)

res:-GetName3

id

(3)

res:-GetName4

name

(4)

See Also

Database, Database[Result], Database[Result][GotoRow], Database[Result][Last], Database[Result][Next], Database[Result][Previous], Database[usage]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam