我想在Redshift上创建一个枚举类型,但无法实现。
CREATE TYPE status AS ENUM ('Yes', 'No');
错误信息是:
An error occurred when executing the SQL command:
CREATE TYPE status AS ENUM ('Yes', 'No')
ERROR: syntax error at or near "ENUM"
Position: 23
CREATE TYPE status AS ENUM ('Yes', 'No')
. ^
1 statement failed
我使用的版本是:
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.1885
无法确定查询是否错误或不受此版本支持?