NAME
SqlCountStatement — Create a SELECT count(1) statement, use dict for WHERE.
SYNOPSIS
SqlCountStatement TableName DictValue
DESCRIPTION
Return Value
A SQL statement ready to execute that will perform a count.
Arguments
TableNameName of table to run query on.
DictValueDict containing column name / column value pairs to use for making the WHERE clause.
More Info
Note that for the dicts, you (currently) must put quotes around any values that will go into text columns or receive an error. We may add support in a future release for automatically detecting the column type and quoting values as necessary.

For information regarding exceptions / errors, see here.
EXAMPLES
% RunSqlCreate my_table {id {integer primary key} desc text notes text}
% QQ [SqlInsertStatement my_table {desc 'one' notes 'uno'}]
% QQ [SqlCountStatement my_table {desc 'one'}]
1
SEE ALSO
SqlCountStatement, SqlRecordExists, SqlWhereClause
KEYWORDS
sql