Elvis Posted December 22, 2005 Report Share Posted December 22, 2005 SELECT augums, vecums, vards FROM juuzeri WHERE vecums IN (20,21,22,23, utt) ORDER BY augums DESC LIMIT 1 Kaa lai no mysql dabuu araa random id piemeram ja saliidzina cilveekus peec auguma un ja shie cilveeki ir vienaada auguma tad katru reizi izvada citu cilveeku (kaadu no shiem abiem cilveekie) Link to comment Share on other sites More sharing options...
rpr Posted December 22, 2005 Report Share Posted December 22, 2005 (edited) SELECT augums, vecums, vards FROM juuzeri WHERE vecums IN (20,21,22,23, utt) ORDER BY augums, rand() LIMIT 1 Edited December 22, 2005 by rpr Link to comment Share on other sites More sharing options...
Elvis Posted December 22, 2005 Author Report Share Posted December 22, 2005 Paldies! Link to comment Share on other sites More sharing options...
Recommended Posts