If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Changing data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-09, 07:48
danny_brazil danny_brazil is offline
Registered User
 
Join Date: Jul 2009
Posts: 19
Changing data

Hello
I hope you guys will understand what i mean ,

i have a database and in this table i have a column named "source"

now, i have lots of data there in the shape of text, names of the sources.

now i have a specific source name i want to change(and there are lots of them)
lets say i want to change it from "X" to "Y"

is there any way to changed it automatically ? not one by one

thanks alot

Danny
Reply With Quote
  #2 (permalink)  
Old 07-15-09, 08:47
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,260
update mytable set mycolumn="blah-di-blah" where mycolumn="oujamaflip"
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 07-15-09, 08:51
danny_brazil danny_brazil is offline
Registered User
 
Join Date: Jul 2009
Posts: 19
Thanks

yeap...

just did it more specific

UPDATE table SET author_name='Aju Menu' WHERE author_name='Natal Menu';


Thanks again
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On