# Set for multiple fields in update query

**URL:** <https://forum.elixirforum.com/t/set-for-multiple-fields-in-update-query/49166>\
**Category:** Questions\
**Tags:** ecto, ecto\_sql, ecto-update\
**Created:** [July 26, 2022, 10:53pm UTC](https://forum.elixirforum.com/t/set-for-multiple-fields-in-update-query/49166 "2022-07-26T22:53:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![joey\_the\_snake](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@joey\_the\_snake](https://forum.elixirforum.com/u/joey_the_snake)\
**Post date:** [July 27, 2022, 2:53am UTC](https://forum.elixirforum.com/t/set-for-multiple-fields-in-update-query/49166/2 "2022-07-27T02:53:17Z")

</div>

You might have to use the escape hatch for this one: [Ecto.Adapters.SQL — Ecto SQL v3.14.0](https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.html#query/4).

---

_[View the full topic](https://forum.elixirforum.com/t/set-for-multiple-fields-in-update-query/49166)._
