Database[SQLite] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Database Package : SQLite : Database/SQLite/ColumnCount

Database[SQLite]

  

ColumnCount

  

get number of columns in prepared statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ColumnCount( statement )

Parameters

statement

-

prepared statement obtained using Prepare command

Description

• 

The ColumnCount command returns number of columns in prepared statement.

Examples

withDatabaseSQLite

Attach,Bind,ClearBindings,Close,ColumnCount,ColumnNames,Execute,Fetch,FetchAll,FetchRow,Finalize,Open,Opened,Prepare,RESULT_BUSY,RESULT_DONE,RESULT_ROW,Reset,Step

(1)

dbFileToolsJoinPathkernelopts'datadir',SQLite,G20-Population.db:

connectionOpendb:

Select all data from table - prepare statement

stmtPrepareconnection,SELECT * FROM population

stmtSQLite statement,SELECT * FROM population

(2)

Number of columns

ColumnCountstmt

21

(3)

Fetch all rows

FetchAllstmt

(4)

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.