NAME
SqlRecordExists — Tell if record exists in given table, matching criteria.
SYNOPSIS
SqlRecordExists TableName WhereDict
DESCRIPTION
Return Value
1 The result was greater than 0.
0 Result was not greater than 0.
Arguments
TableNameName of table to search.
WhereDictList with column names and column values.
Name of table to check for record.
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.

Check About Configuration for Database Use for info about how to set up Gen for using database-related commands.


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'}]
% SqlRecordExists my_table {desc 'one'}
1
SEE ALSO
SqlCountStatement, SqliteTableExists
KEYWORDS
sql