MySQL Forums
Forum List  »  Newbie

Re: Insert into table from another table if not exist
Posted by: Peter Brawley
Date: May 25, 2021 07:46AM

> both have primary keys(Integer, Not Null,Unique and Auto Increment)

If they're PKs, it's redundant to also declare them unique.

To see what's going on, run the SEELCT portion of that query by itself.

Options: ReplyQuote


Subject
Written By
Posted
Re: Insert into table from another table if not exist
May 25, 2021 07:46AM


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.