How to update multiple rows ? #915
-
Hello, how can I update multiple rows ? this is my current code
in pgp.as.format I have no plan id only when I map but I think I should not map all my pgp.as.format or how can I access it ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Again, see Column, which supports You would simply have one column name as See helpers.update. |
Beta Was this translation helpful? Give feedback.
-
I saw your question on StackOverflow, and I answered it. |
Beta Was this translation helpful? Give feedback.
Again, see Column, which supports
cnd
flag, so you can have columns that are just for setting the condition. There are plenty of examples of it on StackOverflow. Here's just one example.You would simply have one column name as
?plan_id
or{name: 'plan_id', cnd: true}
, and use it withWHERE
clause.See helpers.update.