I am trying to create tables under a schema. However, I am getting following error.
[Code: 0, SQL State: 42601] ERROR: syntax error at or near "VARCHAR" Position: 120 [Script position: 120 - 123]
I am not able to debug where is the syntax error. Below you can find the postgres query.
CREATE SCHEMA IF NOT EXISTS ebi_mut_db;
CREATE TABLE IF NOT EXISTS ebi_mut_db.version_info (
version INT,
download_date DATE,
download_url TEXT,
responsible TEXT);
CREATE TABLE IF NOT EXISTS ebi_mut_db.mutations_affecting_interactions (
Feature AC NOT NULL VARCHAR (20),
Feature short label VARCHAR (50),
Feature range(s) VARCHAR (50),
Original sequence CHAR (50),
Resulting sequence CHAR (50),
Feature type VARCHAR (100),
Feature annotation VARCHAR (255),
Affected protein AC VARCHAR (100),
Affected protein symbol VARCHAR (100),
Affected protein full name VARCHAR (100),
Affected protein organism VARCHAR (100),
Interaction participants VARCHAR (255),
PubMedID VARCHAR (100),
Figure legend VARCHAR (50),
Interaction AC VARCHAR (50),
PRIMARY KEY (Feature AC);
Thanks
chardata type