nsmcp::DatabaseSession method scalar (public)

 <instance of nsmcp::DatabaseSession[i]> scalar sql

Defined in /usr/local/ns/tcl/nsmcp/database.tcl

Execute a query and return its first value. Reuse execute in the caller's scope, retaining its current-variable binding behavior.

Parameters:
sql (required)
Trusted SQL text; current values are resolved in the caller's scope.
Returns:
The first column of the first row, or an empty result when no row is returned.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: