我想对查询执行批量更新。这是我想在批处理中执行的 4 个查询:
Update Contact SET contactNumber = '876-128-9871' WHERE userId = 1 AND contactType = 'A';
Update Contact SET contactNumber = '615-165-9071' WHERE userId = 1 AND contactType = 'B';
Update Contact SET contactNumber = '816-897-5818' WHERE userId = 1 AND contactType = 'C';
Update Contact SET contactNumber = '151-891-7861' WHERE userId = 1 AND contactType = 'D';
是否可以针对这种情况执行批量更新?
如果是,那怎么办?
任何参考/链接表示赞赏。