How to create a temporary table using VALUES in PostgreSQL
https://dba.stackexchange.com/questions/86724/how-to-create-a-temporary-table-using-values-in-postgresql
WEBDROP TABLE IF EXISTS lookup; CREATE TEMP TABLE lookup(key, value) AS VALUES (0::int,-99999::numeric), (1,100); If you must write a select statement you can do that too (and you don't need a CTE). CREATE TEMP TABLE lookup(key, value) AS SELECT key::int, value::numeric FROM ( VALUES (0::int,-99999::numeric), (1,100) ) AS t(key, …
DA: 14 PA: 54 MOZ Rank: 60