Jump to content

Archived

This topic is now archived and is closed to further replies.

stevebor1

Searcha nd replace Value - Help!

Recommended Posts

what querey do i run in myphpadmin to search and replace. i have a table (yabbse_members) with a field called (personalText). I want to replace the initial value "I Love YaBB!" to something else. What do i need to type to search and replace? i have about 250 members that i need to change. Thanks

Share this post


Link to post
Share on other sites
[code]UPDATE yabbse_members SET personalText = 'Something Else' [/code]
That will change ALL records

Share this post


Link to post
Share on other sites
[!--quoteo(post=338817:date=Jan 21 2006, 07:08 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jan 21 2006, 07:08 PM) [snapback]338817[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[code]UPDATE yabbse_members SET personalText = 'Something Else' [/code]
That will change ALL records
[/quote]

ok, but i want to change only those that have "I Love Yabb!" and not the others. do i do a SEARCH of some kind?

Share this post


Link to post
Share on other sites
[code]UPDATE yabbse_members SET personalText = 'Something Else' WHERE personalText = 'I Love Yabb!' [/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.