How to avoid Duplicate values for INSERT in SQL?

前端 未结 6 647

I have one table named:

Delegates

This table has four fields:

ID(Auto increment, Primary)
MemberNo, FromYr, ToYr
         


        
6条回答
  •  时光说笑
    2020-11-27 08:27

    make a stored procedure that will first make a check on the whether the values are already contained in the DB. if they arent you will do your insert. If they simply ignore it

提交回复
热议问题