SqlBuilder.selectAddTargetId

Adds a new target to a SELECT statement. If there already exists a target representing the same table and the same alias (or with the same absence of alias) then the same target ID is returned instead of the ID of a new target.

class SqlBuilder
selectAddTargetId

Parameters

tableId gda.types.SqlBuilderId

the ID of the expression holding a table reference (not 0)

alias_ string

the alias to give to the target, or null

Return Value

Type: gda.types.SqlBuilderId

the ID of the new (or existing) target, or 0 if there was an error