Create index in access table

Hello guys

How could I create an index in an  access table?

Something like this:

create index ....

thanks

LVL 1
hidrauAsked:
Who is Participating?
 
hongjunConnect With a Mentor Commented:
Do this

CREATE INDEX IndexName on TableName ([FieldName])


In this case, we are not specifying UNIQUE.
0
 
hongjunCommented:
try this

CREATE UNIQUE INDEX IndexName ON TableName ([FieldName])
0
 
hidrauAuthor Commented:
this fieldname will have duplicated row. In access there is an option to allow or not duplicated rows, Mustn't I do this in the sql line?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
hidrauAuthor Commented:
ah i see
0
 
hidrauAuthor Commented:
I forgot to tell you that I need to check whether there is already an index created or not.

Do you have any Ideia how to do that?

0
 
Tomas Helgi JohannssonConnect With a Mentor Commented:
DROP INDEX IndexName;
COMMIT;
CREATE INDEX IndexName on TableName([FieldName];
COMMIT;

Regards,
  TOmas Helgi
0
 
hidrauAuthor Commented:
thanks very much
0
All Courses

From novice to tech pro — start learning today.