Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
haki
· 5y ago · 0 comments
I'm always looking for new copy tricks. Is "copy" a temporary table? Or a variable...?
Comments
[–]
luhn
5y 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;