Scott:

Sorry, should have included it...
http://dev.mysql.com/doc/mysql/en/CREATE_INDEX.html

The basic syntax you're looking to use is

ALTER TABLE tablename ADD UNIQUE `index_name` ( email_address, group )

Wes

On Jul 20, 2004, at 7:45 PM, Scott Haneda wrote:

on 7/20/04 4:10 PM, Wesley Furgiuele at [EMAIL PROTECTED] wrote:

Rather than make the email address column unique, since you want to allow
multiple email address instances, you can make a unique index based on
email_address+group. Wouldn't that help, or is that still too simple for your
situation?

I think you nailed it, I was not aware of this feature, any links that tell
me more?
--
-------------------------------------------------------------
Scott Haneda Tel: 415.898.2602
http://www.newgeo.com Fax: 313.557.5052
[EMAIL PROTECTED] Novato, CA U.S.A.




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]





--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to