Repeatedly binds a variable to the results of a query, and executes a body of code using the bound variable.
do-query &rest args query &key database &rest body =>
A set of bindings.
A database query.
A Lisp code body.
do-query repeatedly executes body within a binding of args on the attributes of each record resulting from query . The return value of
do-query is determined by the result of executing body .
The default value of database is
The following code repeatedly binds the result of selecting an entry in
ename from the table
emp to the variable
name , and then prints
name using the Lisp function
(do-query ((name) [select [ename] :from [emp]])
LispWorks Reference Manual (Windows version) - 14 Dec 2001