sql oracle update multiple rows
UPDATE employee SET staff_no = CASE depno WHEN 1 THEN 'ab123' WHEN 2 THEN 'ab321' --... ELSE staff_no END WHERE depno IN ( 1, 2 ) -- list all cases here. use a subquery if you don't want to / cannot enumerate
sql oracle update multiple rows
UPDATE employee SET staff_no = CASE depno WHEN 1 THEN 'ab123' WHEN 2 THEN 'ab321' --... ELSE staff_no END WHERE depno IN ( 1, 2 ) -- list all cases here. use a subquery if you don't want to / cannot enumerate
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us