SEQUENCE-LAST — Return the last element in a database sequence.Function
name
The name of the sequence as a string, symbol or SQL expression.
database
A database object which defaults to *default-database*.
result
An integer.
Return the last value allocated in the sequence called
name
in database
which defaults to *default-database*.
Will signal an error of type
sql-database-data-error if a sequence called
name
does not exist in
database
.