ColumnCount - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Database[SQLite]

  

ColumnCount

  

get number of columns in a prepared statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ColumnCount( statement )

Parameters

statement

-

prepared SQL statement obtained using the Prepare command

Description

• 

The ColumnCount command returns the number of columns in a prepared statement.

Examples

withDatabaseSQLite:

dbFileToolsJoinPathkerneloptsdatadir,SQLite,G20-Population.db:

connectionOpendb:

Select all data from table - prepare statement

stmtPrepareconnection,SELECT * FROM population

stmtSQLite statement,SELECT * FROM population

(1)

Number of columns

ColumnCountstmt

21

(2)

Fetch all rows

FetchAllstmt

Finalizestmt:

Closeconnection:

Compatibility

• 

The Database[SQLite][ColumnCount] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.