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:
  #1  
Old March 22nd, 2004, 10:09 PM
rd42 rd42 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: peoria, IL, USA
Posts: 64 rd42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
mySQL SELECT and REPLACE

How would I write a mySQL statement the would, for example, select anything in the database that equals robert and replace it with Robert?

Reply With Quote
  #2  
Old March 22nd, 2004, 10:43 PM
brut brut is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 367 brut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 30 sec
Reputation Power: 2
RE: mySQL SELECT and REPLACE

You're not giving a whole lot of info to work with, but on a basic level you could just use UPDATE.
Maybe something like
Code:
UPDATE table_name SET first_name='Robert' WHERE first_name='robert';

Reply With Quote
  #3  
Old March 22nd, 2004, 11:21 PM
rd42 rd42 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: peoria, IL, USA
Posts: 64 rd42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: mySQL SELECT and REPLACE

I have a database with more tables than I would like to type, that I would like to replace every occurance of certain names.

What I'm looking for is maybe a wildcard of somesort that will replace every value of 'robert' to 'Robert'.

I'm sure it sounds lazy and potentially dangerous, but the name occurs in quite a few tables.

Thanks for your help though!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > mySQL SELECT and REPLACE


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