Creates an index for a table.
sql
create-index name &key on unique attributes database
name⇩ |
The name of the index. |
on⇩ |
The name of a table. |
unique⇩ |
A boolean. |
attributes⇩ |
A list of attributes. |
database⇩ |
A database. |
The function create-index
creates an index called name on the table specified by on. The attributes of the table to index are given by attributes. Setting unique to t
includes UNIQUE
in the SQL index command, specifying that the columns indexed must contain unique values.
The default value of unique is nil
. The default value of database is *default-database*.
(create-index [manager] :on [emp] :unique t :attributes '([ename] [sal]))
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56