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

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 01-20-2005, 08:23 PM   PM User | #1
alaios
Regular Coder

 
Join Date: Aug 2002
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
alaios is an unknown quantity at this point
insert randomly data

Hi i need to enter some integer numbers (randomly) into a filed... any idea?
alaios is offline   Reply With Quote
Old 01-20-2005, 08:29 PM   PM User | #2
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf is on a distinguished road
what's "a filed"
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html
raf is offline   Reply With Quote
Old 01-20-2005, 09:15 PM   PM User | #3
alaios
Regular Coder

 
Join Date: Aug 2002
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
alaios is an unknown quantity at this point
i mean field

field... thx
alaios is offline   Reply With Quote
Old 01-20-2005, 10:18 PM   PM User | #4
Kiwi
Regular Coder

 
Join Date: Oct 2002
Posts: 379
Thanks: 0
Thanked 0 Times in 0 Posts
Kiwi is an unknown quantity at this point
INSERT INTO table1(key_fields,random_column) VALUES (key_value,RAND());

or

UPDATE table1 SET random_column = RAND() WHERE <identify records>;
__________________
Strategy Conscious
Kiwi 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 10:30 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.