SqlBuilder.selectAddField

gda.types.SqlBuilderId selectAddField(string fieldName, string tableName = null, string alias_ = null)

Valid only for: SELECT statements.

Add a selected selected item to the SELECT statement.

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

Parameters

fieldNamea field name
tableNamea table name, or null
alias_an alias (eg. for the "AS" clause), or null

Returns

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