The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

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
29.3k287438644


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
29.3k287438644
accept rate: 32%

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:

×113
×25
×22
×4

question asked: 14 Jun '10, 14:05

question was seen: 888 times

last updated: 14 Jun '10, 16:09