Update (TQL)

From Tygron Support wiki
Jump to navigation Jump to search

Update TQL queries allow users to set numerical values for specific item in a session of a project. By adding various clauses to an update statement, the query can be made more specific.

Composition of an Update Query======Composition of a Select Query

An Update TQL query provides a means to update an attribute to one or more values for a selection of data of a session. The 'Update' statement is consists of the UPDATE word followed by the context, for example AREA. Next the attribute to update is stated, followed by the word WHERE. Depending on the context, one or more clauses can be added. Clauses are separated with the AND word. All of these parts are separated by an underscore _.

An example of a TQL select statement is: UPDATE_AREA_WATER_LEVEL_M_WHERE_AREA_IS_0. In this example:

  • UPDATE is the statement
  • AREA is the context
  • WATER_LEVEL_M is the attribute
  • AREA__IS_0 is the first clause.

This adds or updates the attribute WATER_LEVEL_M for the area with ID 0 to a particular value. The particular value is supplied separately and the way it is supplied depends on the situation in which this statement is executed.

Executing an Update Query

TQL Queries can be executed using:

List of Update types

Click on the link of specific Select TQL types to see what you can do with them.