Function
sql
query sql-exp &key database => result-list
An SQL query statement to be performed.
A database.
A list of values.
query is the basic SQL query function. It queries the database specified by database with an SQL query statement given by query-expression and returns a list of values as per select. The argument database defaults to*default-database*. do-queryexecute-commandloopmap-queryselect