create table in postgreSQL

前端 未结 4 1017
栀梦
栀梦 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条回答
  •  一个人的身影
    2021-01-30 08:58

    -- Table: "user"
    
    -- DROP TABLE "user";
    
    CREATE TABLE "user"
    (
      id bigserial NOT NULL,
      name text NOT NULL,
      email character varying(20) NOT NULL,
      password text NOT NULL,
      CONSTRAINT user_pkey PRIMARY KEY (id)
    )
    WITH (
      OIDS=FALSE
    );
    ALTER TABLE "user"
      OWNER TO postgres;
    

提交回复
热议问题