create table in postgreSQL

前端 未结 4 1052
栀梦
栀梦 2021-01-30 08:07

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 NUL         


        
4条回答
  •  Happy的楠姐
    2021-01-30 08:48

    Please try this:

    CREATE TABLE article (
      article_id bigint(20) NOT NULL serial,
      article_name varchar(20) NOT NULL,
      article_desc text NOT NULL,
      date_added datetime default NULL,
      PRIMARY KEY (article_id)
    );
    

提交回复
热议问题