Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 使用phpPgAdmin创建表时出错_Sql_Postgresql - Fatal编程技术网

Sql 使用phpPgAdmin创建表时出错

Sql 使用phpPgAdmin创建表时出错,sql,postgresql,Sql,Postgresql,我一直在努力与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, "secondar

我一直在努力与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
我是这样设置的:


我不知道我做错了什么

尝试删除主\u category\u id列的长度规范,postgresql不支持类型
integer(10)
,只支持
integer
(又称
int4