RAND() in WHERE Clause macht komische dinge...
Posted by:
kay goebel
Date: April 22, 2010 08:02AM
Tabelle:
pkid name
1 foo
2 bar
3 muh
4 kuh
5 lala
SELECT `name`FROM tabelle
WHERE `pkid` = FLOOR(RAND()*5)+1;
Sollte nach gmv foo bar muh kuh oder lala ausgeben. Gibt aber unnachvollziehbar. Entweder null, ein ergebniss oder MEHRERE zurück... WTF???
Brauche Hilfe um meine geistige Gesundheit zu behalten....
Greetz kay
Subject
Views
Written By
Posted
RAND() in WHERE Clause macht komische dinge...
3015
April 22, 2010 08:02AM
1414
May 02, 2010 06:18AM
Sorry, you can't reply to this topic. It has been closed.
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.