|-
| width='90' | '''Signatures'''
|{{Func|sql:execute|$connection as xs:integer, $item arg as item()|element()*}}
|-
| '''Summary'''
| This function executes a query, update or prepared statement. The parameter {{Code|$id}} specifies either a connection handle or a prepared statement handle. The parameter {{Code|$itemarg}} is either a string representing an SQL statement or an element {{Code|<sql:parameters/>}} representing the parameters for a prepared statement along with their types and values. In case of the latter, the following schema shall be used:<br/ >
<pre class="brush:xml">
element sql:parameters {