I am trying to write a query like this

UPDATE table_name SET column_name1 = CASE WHEN column_name2="asd" THEN comun_name1="123" 
WHEN column_name2="qwe" THEN comun_name1="456"
WHEN column_name2="ghj" THEN comun_name1="568" END

with sequelize bulkUpdate, but i can not find an example or any references in documentation.

0

There are 0 best solutions below