using phpPgAdmin, I’ve tried to create a table in my database. But am getting an error after it has generated its code.
SQL error:
ERROR: syntax error at or near "(" at character 91
CREATE TABLE "public"."main_products_common_dimensions" ("id" SERIAL, "product_id" integer(3) NOT NULL, "h_ft" character varying(15), "h_in" character varying(15), "w_ft" character varying(15), PRIMARY KEY ("id")) WITHOUT OIDS
What could be wrong with the parenthesis?
The problem – you cannot specify precision for
integertype, sointeger(3)is invalid type. Usenumeric(3)or simpleinteger.