Welcome Guest, Not a member yet? Register   Sign In
REPLACE INSERT/IGNORE in Active Record
#1

[eluser]kanuj[/eluser]
Is there an implementation of replace/insert ignore in active record in codeigniter? I wish to skip duplicate rows while insertion into a table.

Thank You.
#2

[eluser]Derek Allard[/eluser]
Not part of active record, however you could write your own queries and CI would happily parse them.
#3

[eluser]kanuj[/eluser]
Thanks Derek, I was hoping to avoid native queries in my app., but since IGNORE/REPLACE are native to MySQL, I'll make do with a native query. Thanks for the reply.
#4

[eluser]Derek Allard[/eluser]
Yeah, and that's the problem with including them in AR, although you are not the first to mention it. Happy igniting!




Theme © iAndrew 2016 - Forum software by © MyBB