From f1f9bf206ce945e02e323d8e9df28ddb62c6ea33 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 4 Dec 2024 12:39:53 +0300 Subject: [PATCH] reset serial postgre --- content/posts/2024/sql/postgres-reset-serial.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 content/posts/2024/sql/postgres-reset-serial.md diff --git a/content/posts/2024/sql/postgres-reset-serial.md b/content/posts/2024/sql/postgres-reset-serial.md new file mode 100644 index 0000000..ffaed8a --- /dev/null +++ b/content/posts/2024/sql/postgres-reset-serial.md @@ -0,0 +1,10 @@ +--- +title: "🗃️ Сброс значения Serial в PostgreSQL" +date: 2024-12-04T12:38:25+03:00 +draft: false +tags: [tips, sql] +--- + +```sql +SELECT setval('cards_id_seq', 1, false); +```