NextPrevUpTopContentsIndex

20.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 - 11 Mar 2008

NextPrevUpTopContentsIndex