|
|
|
|
|
|
![]() |
#1 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
MySql statement needed
Can someone tell me if there is a MySql statement that will do a search and replace on a database? Or any alternative maybe?
__________________
Submissions Wanted! |
![]() |
![]() |
![]() |
#2 | |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
Join Date: Feb 2005
Location: Kuopio, Finland
Posts: 26
|
Quote:
UPDATE links SET niche='Amateur' WHERE niche='Amaateur'; UPDATE links SET niche='Hairy',status='Active' WHERE submitter='xxxx' AND email like 'some_dude%'; I hope this helps ![]()
__________________
Smsmovies.net - The Affiliate Program |
|
![]() |
![]() |
![]() |
#3 | |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
Quote:
__________________
Submissions Wanted! |
|
![]() |
![]() |
![]() |
#4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
create tablenamebackup select * from tablename;
update tablename set fieldname=replace(fieldname,'!',''); tablenamebackup = whatever you want that signifies that you made a backup tablename = the table that contains the data you want to change fieldname = the name of the field that has the data you want to change if you don't know the name of the table or how the table is laid out: show tables; describe tablename; If you're using phpmyadmin, you should be able to navigate through and get the info from the command above. note, if you screw up: delete from tablename; insert into tablename select * from tablenamebackup;
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#5 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
Thanks cd34 - that did the biz
![]()
__________________
Submissions Wanted! Last edited by CelticTiger; 2006-08-03 at 11:10 AM.. |
![]() |
![]() |
![]() |
|
|