| | ## Where |
| | |
| | -Example **rxm** where conditions include: |
| | +Example **rxm** expressions for SQL WHERE clauses include: |
| | |
| | ``` |
| | -account.id = $id # $ starts a named parameter |
| | -account.id <> $id # inequality parameter comparison |
| | -account.id = {$id, 1} # becomes IN set |
| | -account.id <> {$id, 1} # becomes NOT IN set |
| | +account.id = :id # : starts a named parameter |
| | +account.id <> :id # inequality parameter comparison |
| | +account.id = {:id, 1} # becomes IN set |
| | +account.id <> {:id, 1} # becomes NOT IN set |
| | account.id = null # becomes IS NULL |
| | account.id <> null # becomes IS NOT NULL |
| | account.id = 'text' # string equality comparison |
| | account.id = -42 # numeric equality comparison |
| | account.id < 42 # numeric less than comparison |
| | account.id > 42 # numeric greater than comparison |
| | account.id <= 42 # numeric less than or equal to comparison |
| | account.id >= 42 # numeric greater than or equal to comparison |
| | ``` |
| | - |
| | -The conditions generate corresponding SQL `WHERE` conditions as expected. |
| | - |
| | -### Variables |
| | - |
| | -Named parameters start with `$`. |
| | - |
| | -### Logical Operators |
| | |
| | -The `&&` and `||` operators indicate logical **and** and **or** expressions, |
| | -respectively. |
| | +The `&&` and `||` operators indicate logical **and** and **or** expressions. |
| | |
| | ## Namespace |