diff --git a/postgres/restarting-sequences-when-truncating-tables.md b/postgres/restarting-sequences-when-truncating-tables.md index f1a5b6c..16d3339 100644 --- a/postgres/restarting-sequences-when-truncating-tables.md +++ b/postgres/restarting-sequences-when-truncating-tables.md @@ -10,6 +10,6 @@ restart it manually or you can tell `truncate` to do it for you. By appending `restart identity` to the end of a `truncate` statement, Postgres will make sure to restart any associated sequences at `1`. -``` +```sql truncate pokemons, trainers, pokemons_trainers restart identity; ```