我对postgresql很新。我想创建一个包含一些值和空列的临时表。这是我的查询,但它没有执行,但在,
(逗号)处出现错误。如何使用值和空列在postgresql中创建临时表
CREATE TEMP TABLE temp1
AS (
SELECT distinct region_name, country_name
from opens
where track_id=42, count int)
我做错了什么?
如何使用select查询和其他列作为空创建一个具有值的列的临时表?
'cast('0'as integer)'可以简化为'0' –
是的。有可能。 –