Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set up constraints on informix table

Status
Not open for further replies.

MichelleButler

IS-IT--Management
Apr 5, 2002
73
GB
Please could anybody help me, I would like to set up a constraint on a table where only one field is unique but I am unable to remember the SQL query. Can anybody help?

The table is called STSTY and I need one constraint on field styleid, no duplicates allowed.

Many thanks

Michelle
 
Michelle:

If I'm interpreting correctly what you want:

create unique index myindexname on ststy(styleid);

you'll probably want choose your own indexname.

Regards,

Ed
Schaefer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top