Skip to content

How to update multiple rows ? #915

Closed Answered by vitaly-t
pullmann4rent asked this question in Q&A
Discussion options

You must be logged in to vote

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 with WHERE clause.

See helpers.update.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@pullmann4rent
Comment options

@vitaly-t
Comment options

@pullmann4rent
Comment options

@vitaly-t
Comment options

@vitaly-t
Comment options

Answer selected by pullmann4rent
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants