taximan
taximan
#stackoverflow #wykopowystackoverflow #programowanie #postgresql #postgres

idzie jakos w postgresie zadeklarowac anonimowa tabele? w moim DO bloku chce zrobic cos w stylu

insertedids table (id uuid); <-- tu postgres mowi ze to nie jest mozliwe

by pozniej moc

insert into todos values (...), (...) ... returning id into inserted
ids

jest cos takiego w ogole mozliwe?
  • Najlepsze
  • Wszystkie komentarze
szczeppan
szczeppan
@taximan: CREATE TEMP UNLOGGED TABLE IF NOT EXISTS inserted_ids (id uuid) ON COMMIT DROP