I do not understand what is wrong with this query? Query tool does not want to create a table in PostgreSQL.
CREATE TABLE article (
article_id bigint(20) NOT NULL auto_increment,
article_name varchar(20) NOT NULL,
article_desc text NOT NULL,
date_added datetime default NULL,
PRIMARY KEY (article_id)
);
First the
bigint(20) not null auto_increment
will not work, simply usebigserial primary key
. Thendatetime
istimestamp
in PostgreSQL. All in all:Replace
bigint(20) not null auto_increment
bybigserial not null
anddatetime
bytimestamp
Please try this: