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

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
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