SqlBuilder.selectAddField

Valid only for: SELECT statements.

Add a selected selected item to the SELECT statement.

For non-SELECT statements, see gda.sql_builder.SqlBuilder.addFieldId.

class SqlBuilder
selectAddField
(
string fieldName
,
string tableName = null
,
string alias_ = null
)

Parameters

fieldName string

a field name

tableName string

a table name, or null

alias_ string

an alias (eg. for the "AS" clause), or null

Return Value

Type: gda.types.SqlBuilderId

the ID of the added field, or 0 if there was an error