You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I want to update the "isAdmin" field to true for 10 users at once based on their different IDs. Is there a simple way to achieve this?
I have learned from a search engine that there are two solutions. One is to use a loop to execute multiple statements, and the other is to use Magical SQL with WHEN/THEN. Are there any simpler approaches?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Suppose I want to update the "isAdmin" field to true for 10 users at once based on their different IDs. Is there a simple way to achieve this?
I have learned from a search engine that there are two solutions. One is to use a loop to execute multiple statements, and the other is to use Magical SQL with WHEN/THEN. Are there any simpler approaches?
Beta Was this translation helpful? Give feedback.
All reactions