Re: How to insert random character data into tables for testing purpose. THanks.

From: leaf_yxj <leaf_yxj(at)163(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to insert random character data into tables for testing purpose. THanks.
Date: 2012-05-02 18:03:47
Message-ID: 1335981827565-5681242.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Andreas,

Thanks a lot.

I tried those following , they work.

1) insert into test values ( generate_series(1,100000000000),
md5(random()::text));

2) create table t_random as select s, md5(random()::text) from
generate_Series(1,5) s;

Thanks.
Regards.

Grace

--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-insert-random-character-data-into-tables-for-testing-purpose-THanks-tp5680973p5681242.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2012-05-02 18:42:03 Re: Limit the normal user to see system catalog or not??? And create privilege???
Previous Message Chris Angelico 2012-05-02 17:03:31 Re: new rows based on existing rows