postgresql不存在dual的解决方法:
CREATE OR REPLACE VIEW dual AS SELECT NULL::"unknown" WHERE 1 = 1; ALTER TABLE dual OWNER TO nnnn; GRANT ALL ON TABLE dual TO ; GRANT SELECT ON TABLE dual TO public;
使用ALTER TABLE命令添加dual,然后使用GRANT命令为dual表设置权限。
推荐:PostgreSQL教程