Changes

Jump to navigation Jump to search
3 bytes added ,  09:22, 6 September 2011
m
→‎Direct queries: changed highlighting to xquery
The parameter <code>$connection</code> specifies the connection handle to be used and the parameter <code>$statement</code> - the statement to be executed. If a query statement is executed, the result set is returned as a sequence of <code><sql:tuple/></code> elements, each one representing a tuple. In case of an update statement an empty sequence is returned. For example, a simple select statement can be executed on the following way:
<pre class="brush:xmlxquery">
let $conn := sql:connect("jdbc:postgresql://localhost:5432/coffeehouse")
return sql:execute($conn, "SELECT * FROM coffees WHERE price < 10")
administrator, Bureaucrats, editor, Interface administrators, reviewer, Administrators
401

edits

Navigation menu