1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add example of output to latest TIL

This commit is contained in:
jbranchaud
2024-11-01 14:42:07 -05:00
parent 95115c7ebc
commit 18bdcc88b8

View File

@@ -32,6 +32,16 @@ select string_agg(
from positions, random_bytes, chars;
```
Here is an example of the output:
```sql
+----------+
| short_id |
|----------|
| NXdu9AnV |
+----------+
```
The
[`generate_series`](https://www.postgresql.org/docs/current/functions-srf.html)
gives us an 8-row table from 0 to 7 that we can use as indexes into the byte