• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

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.

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

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.

[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!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.