The output type specification.
The result sequence type.
A function.
An SQL query.
A database.
The function map-query
returns the result of mapping function across the results of query-expression . The output-type-spec argument specifies the type of the result sequence as per the Common Lisp map
function.
This example binds name
to each name in the employee table and prints it.
(map-query
nil
#
'(lambda (name) (print name))
[select [ename] :from [emp] :flatp t])