mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Add sql syntax highlighting to the latest til.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
Given a postgres database, if you want to delete all rows in a table, you
|
Given a postgres database, if you want to delete all rows in a table, you
|
||||||
can use the `DELETE` query without any conditions.
|
can use the `DELETE` query without any conditions.
|
||||||
|
|
||||||
```
|
```sql
|
||||||
> delete from pokemons;
|
> delete from pokemons;
|
||||||
DELETE 151
|
DELETE 151
|
||||||
```
|
```
|
||||||
@@ -13,7 +13,7 @@ out a table, you are better off using `TRUNCATE`. A `TRUNCATE` query will be
|
|||||||
faster than a `DELETE` query because it will just delete the rows without
|
faster than a `DELETE` query because it will just delete the rows without
|
||||||
scanning them as it goes.
|
scanning them as it goes.
|
||||||
|
|
||||||
```
|
```sql
|
||||||
> truncate pokemons;
|
> truncate pokemons;
|
||||||
TRUNCATE TABLE
|
TRUNCATE TABLE
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user