Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - Database Management and Reference » UltraLite database schemas » UltraLite indexes

 

Index types

UltraLite supports different types of indexes: unique keys, unique indexes, and non-unique indexes. What differentiates one from the others is what is allowed in that index.

Index characteristic Unique keys Unique indexes Non-unique indexes
Allows duplicate index entries for rows that have the same values in indexed columns. no no yes
Allows null values in index columns. no yes yes
Note

You can create foreign keys to unique keys, but not to unique indexes.

Also, manually creating an index on a key column is not necessary and generally not recommended. UltraLite creates and maintains indexes for unique keys automatically.

 See also