平时用的比较多的SQL语句,有时候会忘掉一点点,在这里记录一下: 1.创建表的同时,插入数据: create table test as select generate_series(1, 1000000) as id, cast(random() as text) as info , now() as crt_time; mydb=# create table test as select generate_series(1, 1000000) as id, cast(random() as…