Next Prev Up Top Contents Index

16.5.1.4 Enclosing literal SQL

Literal SQL statements can simply be enclosed in the square bracket syntax, as shown below.

["SELECT FOO, BAR FROM BAZ"]
-> #<SQL "SELECT FOO, BAR FROM BAZ">
[select [*] :from [tbl]]
-> #<SQL-QUERY "(SELECT * FROM TABLE)">
[person surname]
->#<SQL-IDENT "PERSON.SURNAME">
[> [foo] 37]
->#<SQL-RELATIONAL-EXP "(FOO > 37)">

LispWorks User Guide - 18 Feb 2003

Next Prev Up Top Contents Index