<sqlquery> element

The <sqlquery> element sends an SQL statement to a database, retrieves the data resulting from the SQL statement, if any, and then stores the data into a macro variable (see SQLQuery action (<sqlquery> element)).