nstcl  >  Documentation  >  nstcl-database  >  database_to_tcl_list

Tcl Powered!

database_to_tcl_list

NAME

database_to_tcl_list — Performs an SQL query and returns a list of results

SYNOPSIS

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

::nstcl::database_to_tcl_list dbhandle SQL ?values?

DESCRIPTION

Performs an SQL query, using dbhandle and returns a list made up of the first column of each of the result row(s).

If specified, results are lappended to values.

KEYWORDS

database, nstcl