我一直在努力解决phpPgAdmin并遇到困难。当尝试使用自动化工具创建表时,我收到以下错误:
SQL error:
ERROR: syntax error at or near "(" at character 96
In statement:
CREATE TABLE "public"."business_secondary_category" ("id" SERIAL, "primary_category_id" integer(10) DEFAULT NULL, "secondary_category" character varying(150) DEFAULT NULL, PRIMARY KEY ("id")) WITHOUT OIDS
这是我设置它的方式:
我无法弄清楚我做错了什么。 Link to character
答案 0 :(得分:2)
尝试取出primary_category_id列的长度规范,postgresql不支持integer(10)
类型,仅integer
(又名int4
)