add_id


Description:

[ Version ( since = "4.2" ) ]
public SqlBuilderId add_id (string str)

Defines an expression representing an identifier 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.

The new expression will contain the str literal. For example: <programlisting> gda_sql_builder_add_id (b, "name") gda_sql_builder_add_id (b, "date") </programlisting>

will be rendered as SQL as: <programlisting> name "date" </programlisting>

because "date" is an SQL reserved keyword.

For fields, see add_field_id.

Parameters:

this

a SqlBuilder object

str

a string

Returns:

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