When creating indexes, is it necessary to explicitly define them on Foreign, Primary, and Alternate Keys or are they created by default because of the key?

asked 14 Jun '10, 14:05

Calvin%20Allen's gravatar image

Calvin Allen
1.5k232638
accept rate: 25%

edited 14 Jun '10, 16:09

Volker%20Barth's gravatar image

Volker Barth
31.3k312458674


From the SA 10.0.1 docs:

Keys and unique columns

SQL Anywhere automatically creates indexes on primary keys, foreign keys, and unique columns. You should not create additional indexes on these columns. The exception is composite keys, which can sometimes be enhanced with additional indexes.

I guess that pretty says it all.

permanent link

answered 14 Jun '10, 16:08

Volker%20Barth's gravatar image

Volker Barth
31.3k312458674
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×114
×27
×24
×4

question asked: 14 Jun '10, 14:05

question was seen: 1,008 times

last updated: 14 Jun '10, 16:09