v4.2.10 released |
Hello everyone. We have released bug fix v4.2.10. Minor bugs have been fixed.
If you use PHPStan, I recommend you update! See https://github.com/codeigniter4/CodeIgni...ANGELOG.md
Thank you to the CodeIgniter Development Team for your hard work.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I need to Insert data in table but on duplicate for unique coloumn I wan to do nothing or update other columns
In codeigniter 4 Save function only update on if primary key is exists. Any suggestion how to do this in Codeigniter 4? I am not sure how to create new Post here hence reply to this thread with question! Sorry for any inconviniece ! (11-15-2022, 12:17 PM)jseemaj Wrote: I need to Insert data in table but on duplicate for unique coloumn I wan to do nothing or update other columns You can write any SQL statement with $db->query() method. https://codeigniter4.github.io/CodeIgnit...eries.html v4.3.0 will have upsert() and upsertBatch() in Query Builder.
|
Welcome Guest, Not a member yet? Register Sign In |