PostgreSQL/Math Functions/setseed — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 16:45, 26 мая 2010

Set seed for subsequent random() calls

   <source lang="sql">

postgres=# -- Set seed for subsequent random() calls postgres=# select setseed(0.54823);

 setseed

1177314959

(1 row) postgres=# select random();

     random

0.985542759292546

(1 row) postgres=# postgres=#

      </source>