CREATE-INDEX — Create a database index.
Function
nameThe name of the index as a string, symbol or SQL expression.
onThe name of a table as a string, symbol or SQL expression.
uniqueA Boolean.
attributesA list of attribute names.
databaseA database object which defaults to *default-database*.
Creates an index called name on the
table specified by on in
database which default to
*default-database*. The table attributes to use
in constructing the index name are
specified by attributes. The
unique argument is NIL by default but
if it has a non-NIL value then the indexed attributes must
have unique values.
(create-index [bar] :on [employee]
:attributes '([first-name] [last-name] [email])
:unique t)
=>
(index-exists-p [bar])
=> T