DELETE-RECORDS — Delete records from a database table.
Function
from
A string, symbol or symbolic SQL expression representing
the name of a table existing in
database.
whereA symbolic SQL expression.
databaseA database object. This will default to the value of *default-database*.
Deletes records satisfying the SQL expression
where from the table specified by
from in database
specifies a database which defaults to
*default-database*.
(select [first-name] [last-name] [email]
:from [employee]
:where [= [emplid] 11]
:field-names nil)
=> (("Yuri" "Gagarin" "gagarin@soviet.org"))
(delete-records :from [employee] :where [= [emplid] 11])
=>
(select [first-name] [last-name] [email]
:from [employee]
:where [= [emplid] 11]
:field-names nil)
=> NIL