# Append comments to SQL queries

**URL:** <https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591>\
**Category:** Questions\
**Tags:** ecto, ecto\_sql\
**Created:** [September 24, 2021, 4:12pm UTC](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591 "2021-09-24T16:12:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dorian-marchal](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@dorian-marchal](https://forum.elixirforum.com/u/dorian-marchal)\
**Post date:** [June 13, 2023, 9:07am UTC](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591/4 "2023-06-13T09:07:16Z")

</div>

It seems to work as expected, see:

```elixir
> Repo.query!("select exists (select from users) /* my comment */")
%Postgrex.Result{command: :select, columns: ["exists"], rows: [[true]], num_rows: 1, connection_id: 247, messages: []}

```

And the generated SQL:

```elixir
select exists (select from users) /* my comment */

```

---

_[View the full topic](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591)._
