Y
Hacker News
new
|
ask
|
show
|
jobs
by
haki
1684 days ago
I'm always looking for new copy tricks. Is "copy" a temporary table? Or a variable...?
1 comments
luhn
1684 days ago
Temporary table. Although looking at the docs it seems CREATE TABLE AS is the recommended syntax.
https://www.postgresql.org/docs/13/sql-createtableas.html
CREATE TEMP TABLE "copy" AS SELECT * FROM foobar;
link