From 52c9fbea5ffebb9ab934dd25c4fb711d81683047 Mon Sep 17 00:00:00 2001
From: Matthew Momjian <50788000+mmomjian@users.noreply.github.com>
Date: Sun, 2 Feb 2025 23:55:47 -0500
Subject: [PATCH] fix(docs): query DB by ID (#15863)

* db query for id

* format

* backticks

* Update database-queries.md
---
 docs/docs/guides/database-queries.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/docs/guides/database-queries.md b/docs/docs/guides/database-queries.md
index e71fa21c8b..2017689984 100644
--- a/docs/docs/guides/database-queries.md
+++ b/docs/docs/guides/database-queries.md
@@ -27,6 +27,10 @@ SELECT * FROM "assets" WHERE "originalPath" = 'upload/library/admin/2023/2023-09
 SELECT * FROM "assets" WHERE "originalPath" LIKE 'upload/library/admin/2023/%';
 ```
 
+```sql title="Find by ID"
+SELECT * FROM "assets" WHERE "id" = '9f94e60f-65b6-47b7-ae44-a4df7b57f0e9';
+```
+
 :::note
 You can calculate the checksum for a particular file by using the command `sha1sum <filename>`.
 :::