用access数据库,为了避免sql插入重复的数据,insert into 后面可以用 where 来限制插入的条件吗?
1条回答 默认 最新
- threenewbee 2020-05-10 11:33关注
最好是在数据库里面把需要避免重复的字段设置为primary key或者unique,这样效率高。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
用access数据库,为了避免sql插入重复的数据,insert into 后面可以用 where 来限制插入的条件吗?
最好是在数据库里面把需要避免重复的字段设置为primary key或者unique,这样效率高。