Escolar Documentos
Profissional Documentos
Cultura Documentos
Note: You wont find boolean expression in the SQL Anywhere Help
look for search condition instead. The term search condition implies a repeti-
tive act, which may apply to the WHERE clause but not to a simple IF statement,
and thats why this book uses boolean expression instead.
Note: TRUE, FALSE, and UNKNOWN are actual SQL Anywhere 9 keywords
representing boolean or truth values. Unfortunately, however, there is no explicit
BOOLEAN or TRUTH data type in SQL Anywhere 9. You cant declare a variable
or column as BOOLEAN, so you cant directly store the value of a <boolean_
expression> in a variable or column. All you can do is use them as you calculate
them, in WHERE clauses, ON conditions, and so on. Or use some other data
type like BIT to hold 1 or 0, or VARCHAR ( 1 ) to hold 'Y' or 'N', and write code to
indirectly calculate, store, and use values of those types. The IF and SET state-
ments can be used for this purpose, and theyre discussed in Chapter 8,
Packaging.