nstcl  >  Documentation  >  nstcl-database  >  database_to_tcl_string

Tcl Powered!

database_to_tcl_string

NAME

database_to_tcl_string — Get a single result as a string from a database query

SYNOPSIS

package require nstcl-database ?1.0?
package require nstcl ?1.0?

::nstcl::database_to_tcl_string dbhandle SQL

DESCRIPTION

Returns the first column of the result of an SQL query against the database referenced by dbhandle. An error is thrown if the database does not return exactly one row.

KEYWORDS

database, nstcl