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

Поиск
Список
Период
Сортировка
От leaf_yxj
Тема Re: How to insert random character data into tables for testing purpose. THanks.
Дата
Msg-id 1335981827565-5681242.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: How to insert random character data into tables for testing purpose. THanks.  (Andreas Kretschmer <akretschmer@spamfence.net>)
Ответы Re: Re: How to insert random character data into tables for testing purpose. THanks.  (Bruce Momjian <bruce@momjian.us>)
Список 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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Angelico
Дата:
Сообщение: Re: new rows based on existing rows
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Limit the normal user to see system catalog or not??? And create privilege???