Go Back   CodingForums.com > :: Server side development > MySQL > Other Databases

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-16-2005, 06:37 PM   PM User | #1
esthera
Senior Coder

 
Join Date: May 2004
Posts: 1,432
Thanks: 14
Thanked 0 Times in 0 Posts
esthera can only hope to improve
select random record

I have the following code

select top 1 * from users

how can I instead of selecting the top just select a random record?
esthera is offline   Reply With Quote
Old 04-02-2005, 04:09 AM   PM User | #2
DigitalBliss
Regular Coder

 
Join Date: Mar 2005
Location: United States
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
DigitalBliss is an unknown quantity at this point
order by rand()
__________________
-the core- -the structure-
DigitalBliss is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:22 AM.


Advertisement
Log in to turn off these ads.