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, value);
DA: 5 PA: 14 MOZ Rank: 13