This [[Module Library|XQuery Module]] contains functions to access relational databases from XQuery using SQL. With this module, you can execute query, update and prepared statements, and the result sets are returned as sequences of XML elements representing tuples. Each element has children representing the columns returned by the SQL statement. =Conventions= All functions dealing with access in this module are assigned to relational databases use the <code>http://basex.org/modules/sql</code> prefixnamespace, which is linked statically bound to the <code>sql</code> prefix.<br/>All errors are assigned to the statically declared <code>http://basex.org/moduleserrors</sqlcode> namespace, which is statically bound to the <code>bxerr</code> namespaceprefix.
=Functions=