get the number of columns in the table - Maple Help

Online Help

All Products    Maple    MapleSim


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

Result:-GetColumnCount - get the number of columns in the table

Calling Sequence

result:-GetColumnCount( )

Parameters

result

-

Result module

Description

• 

GetColumnCount returns the number of columns in result.

Examples

Create a Result.

driver:=Database[LoadDriver]:

conn:=driver:-OpenConnectionurl,name,pass:res:=c:-ExecuteQuerySELECT id FROM animals:res:-GetColumnCount

1

(1)

res:=c:-ExecuteQuerySELECT id,mass FROM animals:res:-GetColumnCount

2

(2)

res:=c:-ExecuteQuerySELECT id,mass,name FROM animals:res:-GetColumnCount

3

(3)

res:=c:-ExecuteQuerySELECT id,mass,name,number FROM animals:res:-GetColumnCount

4

(4)

See Also

Database, Database[Result], Database[Result][First], 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