ColumnNames - 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


Database[SQLite]

  

ColumnNames

  

get names of columns in a prepared statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ColumnNames( statement )

Parameters

statement

-

prepared SQL statement obtained using the Prepare command

Description

• 

The ColumnNames command returns the names of the columns in a prepared SQL 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

ColumnNamesstmt

Date,USA,CHN,JPN,DEU,FRA,BRA,GBR,ITA,RUS,IND,CAN,AUS,ESP,MEX,KOR,IDN,TUR,SAU,ARG,ZAF

(2)

Fetch all rows

FetchAllstmt

Finalizestmt:

Closeconnection:

Compatibility

• 

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

• 

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