By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,215 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,215 IT Pros & Developers. It's quick & easy.

Adding an index to a table

P: n/a
I am trying to convert a column to a unique column. Tried to look at some
examples on-line but failed to find the correct syntax I need. So, while I'm
waiting for my SQL book to arrive, a pointer would be nice. This is what I
have so far....

ALTER TABLE member MODIFY username UNIQUE

What am I missing?
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Simon Jackson wrote:
I am trying to convert a column to a unique column. Tried to look at some
examples on-line but failed to find the correct syntax I need. So, while
I'm waiting for my SQL book to arrive, a pointer would be nice. This is
what I have so far....

ALTER TABLE member MODIFY username UNIQUE

What am I missing?


alter table member add unique index idx_username (username);
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.