I need use Insert Ignore for my table, which have Unique index on several fields.
How can i do it?
Thank you
I need use Insert Ignore for my table, which have Unique index on several
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe insert ignore is a mysql-specific extension to SQL, which means it’s not supported by most DBs.
You will need to fallback on raw SQL on this one, or make use of the exceptions thrown by NHibernate (and the underlying dialect)