diff options
| author | alex <alex@pdp7.net> | 2023-10-13 16:02:34 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-13 16:03:35 +0200 |
| commit | 87df74b49c8792e9dddd550d862b2cfa9a2e909b (patch) | |
| tree | ce1013a2f9a4ac79a6f6e4d94b857c2900dead11 /content/2011/12/upserts.gmi | |
| parent | 4f86ec0553d659fe3253a92657d85a96734d0048 (diff) | |
Adapt to new layout
Diffstat (limited to 'content/2011/12/upserts.gmi')
| -rw-r--r-- | content/2011/12/upserts.gmi | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/content/2011/12/upserts.gmi b/content/2011/12/upserts.gmi deleted file mode 100644 index a163de5b..00000000 --- a/content/2011/12/upserts.gmi +++ /dev/null @@ -1,11 +0,0 @@ -# Upserts... -2011-12-17 - -Trabajando en un pequeño experimento[1], se me ha ocurrido un insert idempotente: - -insert into foo (bar) (select 'bar_value' as bar where not exists (select 1 from foo where bar = 'bar_value')); - -(la sintaxis es de PostgreSQL, pero supongo que es adaptable a otras bases de datos). Igual intento adaptarlo a hacer upserts. - - -=> https://github.com/alexpdp7/tvguide 1: https://github.com/alexpdp7/tvguide
\ No newline at end of file |
