CREATE-INDEX — Create a database index.Function
name
The name of the index as a string, symbol or SQL expression.
on
The name of a table as a string, symbol or SQL expression.
unique
A Boolean.
attributes
A list of attribute names.
database
A 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