MySQL Forums
Forum List  »  Newbie

Re: using Insert Ignore for a specific column only
Posted by: Phillip Ward
Date: November 09, 2022 08:29AM


ADD UNIQUE INDEX `employee_email_campaign_taxyear` () VISIBLE

The fact that the list of fields (the bit in brackets) is empty is worrying.
Try executing the statement, with the correct field names) directly in the query window:

ALTER TABLE substantiator.employees
ADD UNIQUE INDEX employee_email_campaign_taxyear ( employee_email, campaign, taxyear ) VISIBLE ;

I seem to recall Workbench having trouble with multi-column "things" (MySQL itself is fine with them).

Regards, Phill W.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.