PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

crea una tabella in postgreSQL

Innanzitutto bigint(20) not null auto_increment non funzionerà, usa semplicemente la bigserial primary key . Quindi datetime è timestamp in PostgreSQL. Tutto sommato:

CREATE TABLE article (
    article_id bigserial primary key,
    article_name varchar(20) NOT NULL,
    article_desc text NOT NULL,
    date_added timestamp default NULL
);