The sql can be predigest to:
select random() from a where random()<0.5;
\d a
Table "public.a"
Column | Type | Modifiers
--------+---------+-----------
a | integer |
This query can get about a half rows in the table 'a'.
When search a row, postgresql calcuate random() twice.
_________________________________________________________
Do You Yahoo!?
登記免費的 @yahoo.com 中文電子郵件 @ http://chinese.mail.yahoo.com
Get your free @yahoo.com address at http://chinese.mail.yahoo.com
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.