在codeigniter更新批量多WHERE子句 [英] Update Batch in Codeigniter with multiple WHERE clause
问题描述
我查了CI用户指南,看看如何处理 update_batch()
,似乎它接受onlt一个索引来匹配该行进行更新。
I checked the CI user guide to see how to handle update_batch()
and it seems it accept onlt one index to match which row to be updated.
但在我的情况下,我需要指定一个像郎
和 id_page
这是我作为指标一起使用两个指标。这样的 LANG = EN |。id_page = 115
是唯一的,这样的键行
But in my instance, i need to specify two index like lang
and id_page
which i use as index together. such lang=en|id_page=115
is unique so the key for the row.
手段,我在那里指数应其中lang = $ LANG和id_page = $ id_page
...
Means, my where index should be WHERE lang = $lang AND id_page = $id_page
...
是否有批量更新多个索引的方法?
Is there any approach on batch update with multiple index?
感谢你。
推荐答案
没有的时刻。你可以写一个新的驱动程序,扩展了现有的一个,但它可能是不值得的。究竟是什么你想怎么办?
There is not at the moment. You could write a new driver that extends one of the existing ones but it is probably not worth it. What exactly are you trying to do?
这篇关于在codeigniter更新批量多WHERE子句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!