SqlBuilder.addFieldId

Defines an expression representing a field in builder, which may be reused to build other parts of a statement, for instance as a parameter to gda.sql_builder.SqlBuilder.addCond or gda.sql_builder.SqlBuilder.addFieldValueId.

Calling this with a null table_name is equivalent to calling gda.sql_builder.SqlBuilder.addId.

For SELECT queries, see gda.sql_builder.SqlBuilder.selectAddField.

class SqlBuilder
addFieldId
(
string fieldName
,
string tableName = null
)

Parameters

fieldName string

a field name

tableName string

a table name, or null

Return Value

Type: gda.types.SqlBuilderId

the ID of the new expression, or 0 if there was an error