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