检测重复插入 [英] detect duplicate insert

查看:129
本文介绍了检测重复插入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有更简单的方法,以prevent刷新后重复插入?我现在做的方式是选择一切与除ID作为参数的所有领域;如果记录存在,我不插入。有没有一种办法可以检测刷新?

Is there an easier way to prevent a duplicate insert after refresh? The way I do it now is to select everything with the all fields except ID as parameters; if a record exists i don't insert. Is there a way to possible detect refresh?

推荐答案

我想你可能要到函数存在。 下面是一个简单的解释EXISTS 我通过谷歌找到。

I think you may want to the EXISTS function. Here's a simple explanation of EXISTS I found through google.

这篇关于检测重复插入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆