Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 16th, 2003, 06:20 PM
Xmevs Xmevs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mosjøen, Nordland, Norway
Posts: 27 Xmevs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
select random row

how can you do that? is it possible? without knowing any of the column names, just returning a random row.

I think this has been mentioned before, but I couldn't remember the answer, so I did a search but I couldn't find it...

Reply With Quote
  #2  
Old May 16th, 2003, 07:53 PM
al042077 al042077 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Omaha, NE
Posts: 23 al042077 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 sec
Reputation Power: 0
Send a message via Yahoo to al042077
RE: select random row

SELECT * FROM table ORDER BY RAND() LIMIT 1

I can't really take the credit though -http://codewalkers.com/archives/sqlhelp/70.html

Reply With Quote
  #3  
Old May 16th, 2003, 08:01 PM
Xmevs Xmevs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mosjøen, Nordland, Norway
Posts: 27 Xmevs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: select random row

hmm... but that one has 'issues'... I think I can use it though, thanks.

I hope they make a good random generator soon...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > select random row


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway