select_add_target_id
Description:
[ Version ( since = "4.2" ) ]
public SqlBuilderId select_add_target_id (SqlBuilderId table_id, string? alias = null)
public SqlBuilderId select_add_target_id (SqlBuilderId table_id, string? alias = null)
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.
Parameters:
this |
a SqlBuilder object |
table_id |
the ID of the expression holding a table reference (not 0) |
alias |
the alias to give to the target, or null |
Returns:
the ID of the new (or existing) target, or 0 if there was an error |