Bug #32249 Intermittent 'duplicate entry' for key 'group_key' on FLOOR(RAND())
| Submitted: | 9 Nov 2007 21:12 | Modified: | 11 Nov 2007 8:35 |
|---|---|---|---|
| Reporter: | Domas Mituzas | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S2 (Serious) |
| Version: | 5.0-bk, 5.1-bk | OS: | Any |
| Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
| Tags: | Rand() | ||
[9 Nov 2007 21:12]
Domas Mituzas
[11 Nov 2007 8:35]
Ramil Kalimullin
From the manual (see http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#function_rand ): "You cannot use a column with RAND() values in an ORDER BY clause, because ORDER BY would evaluate the column multiple times".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.