Welcome Guest, Not a member yet? Register   Sign In
Prevent duplicate record
#3

(06-10-2020, 03:07 AM)InsiteFX Wrote: There is no way to check it without using a select.

Code:
SELECT EXISTS(SELECT * FROM yourTableName WHERE yourCondition);

I would make sure that both columns are index.
Thanks but
I remember we could implement this feature with add key on fields and prevent duplicate records
But i dont know how do it
Reply


Messages In This Thread
Prevent duplicate record - by omid_student - 06-10-2020, 01:41 AM
RE: Prevent duplicate record - by InsiteFX - 06-10-2020, 03:07 AM
RE: Prevent duplicate record - by omid_student - 06-10-2020, 03:19 AM
RE: Prevent duplicate record - by InsiteFX - 06-10-2020, 07:59 AM
RE: Prevent duplicate record - by omid_student - 06-10-2020, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB