Re: Help with ALTER TABLE statement



Allen Browne wrote:

Marsh, I don't use DDL much, so I'm not sure how to add a CONSTRAINT that
will index the field "Duplicates Ok." Is that a constraint?


Well I don't use it all that much either Allen, so I have to
look it up in Help every time I do ;-)

AFAIK, an allow duplicates index/constraint just doesn't
specify the UNIQUE option.

The way I undestand it Create Index is not quite a subset of
a Constraint clause. A constraint can also specify a
relationship with or without the Cascade options, but there
may be a difference that I am not aware of - thus my earlier
question.

Re our long standing issue with invisible, duplicate
indexes, I did dig into the relationship part of a
Constraint clause once in hopes of using an existing index
instead of having the relationship create a duplicate index,
but no, a relationship can not be specified unless a new
index is also specified :-(

Checking Help once again, I see that I will have to dig up
those old experiments and try again using A02/03 to see what
the new NO INDEX option does.

--
Marsh
MVP [MS Access]
.



Relevant Pages

  • Re: Help with ALTER TABLE statement
    ... Allen Browne wrote: ... Duplicates OK issue, the NOT NULL option must then be ... There are more differences between CONSTRAINT and CREATE ... Sorry about all the confusion I brought to the thread. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Help with ALTER TABLE statement
    ... Is that a constraint? ... an allow duplicates index/constraint just doesn't ... specify the UNIQUE option. ... I see that I will have to dig up ...
    (microsoft.public.access.modulesdaovba)
  • Re: Difference between semivowel and consonant
    ... would seem to specify only how the tongue is oriented relative to the ... than there is such a constraint on its fricative counterpart SAMPA ... So there is an implicit contraint to the position of the lips? ... there are many examples both of vowels and of consonants undergoing ...
    (sci.lang)
  • Re: general Q about formulae
    ... >>combination of two fields (sampleID and testname). ... >>these two fields and then made that an index field (no duplicates)? ... > easy define a PRIMARY KEY or UNIQUE constraint on a combination of two ...
    (comp.databases.ms-sqlserver)
  • Re: general Q about formulae
    ... >combination of two fields (sampleID and testname). ... >these two fields and then made that an index field (no duplicates)? ... ADD CONSTRAINT NoDuplicates UNIQUE ...
    (comp.databases.ms-sqlserver)