Level 102
I don't believe this to be possible (or rather it might be, but your query would have to be filled with a load of CASE statements)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. please consider following data: $data=[ ['id'=>'1','stock'=>'12'], ['id'=>'2','stock'=>'13'] ]; how can I update all stocks using IDs using one query?
Please or to participate in this conversation.