add_field_id


Description:

[ Version ( since = "4.2" ) ]
public SqlBuilderId add_field_id (string field_name, string? table_name = null)

Defines an expression representing a field in this, which may be reused to build other parts of a statement, for instance as a parameter to add_cond or add_field_value_id.

Calling this with a null table_name is equivalent to calling add_id.

For SELECT queries, see select_add_field.

Parameters:

this

a SqlBuilder object

field_name

a field name

table_name

a table name, or null

Returns:

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