The forum will be unavailable for maintenance at some point from Friday, April 13 at 19:00 EDT until Sunday, April 15 at 23:59 EDT. Downtime will be minimized but the exact timing is unknown.

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
accept rate: 25%

edited 14 Jun '10, 16:09

Volker%20Barth's gravatar image

Volker Barth

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 14 Jun '10, 14:05

question was seen: 1,142 times

last updated: 14 Jun '10, 16:09