Function
sql
map-query output-type-spec function query-exp &key database => result
The output type specification.
The result sequence type.
A function.
An SQL query.
A database.
A sequence of type output-type-spec containing the results of the map 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 Lispmap function. *default-database*. name to each name in the employee table and prints it.
(map-query
´null
#'(lambda (name) (print name))
[select [ename] :from [emp] :flatp t])
do-queryloopprint-queryqueryselect