taximan taximan 22.02.2017, 10:34:12 3 + #stackoverflow #wykopowystackoverflow #programowanie #postgresql #postgresidzie 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 mozliweby pozniej mocinsert into todos values (...), (...) ... returning id into insertedids jest cos takiego w ogole mozliwe?
szczeppan szczeppan 22.02.2017, 17:46:58 0 + @taximan: CREATE TEMP UNLOGGED TABLE IF NOT EXISTS inserted_ids (id uuid) ON COMMIT DROP
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 insertedids
jest cos takiego w ogole mozliwe?
CREATE TEMP UNLOGGED TABLE IF NOT EXISTS inserted_ids (id uuid) ON COMMIT DROP