Generate n rows of NULL in PostgreSQL

前端 未结 1 1952
名媛妹妹
名媛妹妹 2021-02-19 21:31

I have a table that looks like this:

id, integer, Primary Key, not null
name, character varying
created, timestamp without timezone, not null, default: now()
         


        
1条回答
  •  情歌与酒
    2021-02-19 22:29

    INSERT INTO
      employee (name)
    SELECT
      NULL 
    FROM
      generate_series(1,10000) i;
    

    0 讨论(0)
提交回复
热议问题