Mar 16, 2006 #1 alexanderthegreat IS-IT--Management Joined Sep 9, 2005 Messages 70 Location US Is it possible to do a find a replace say for example I want to change all Llc to LLC in my table garages in my field named garagename? exine Water Garage Llc
Is it possible to do a find a replace say for example I want to change all Llc to LLC in my table garages in my field named garagename? exine Water Garage Llc
Mar 16, 2006 1 #2 SQLDenis Programmer Joined Oct 1, 2005 Messages 5,575 Location US select replace('Pine Water Garage Llc','Llc','LLC') update garages set garagename=replace(garagename,'Llc','LLC') where garagename like '%Llc' --this assumes it ends with Lic do a select first to confirm select garagename,replace(garagename,'Llc','LLC') from garages where garagename like '%Llc' Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
select replace('Pine Water Garage Llc','Llc','LLC') update garages set garagename=replace(garagename,'Llc','LLC') where garagename like '%Llc' --this assumes it ends with Lic do a select first to confirm select garagename,replace(garagename,'Llc','LLC') from garages where garagename like '%Llc' Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/
Mar 16, 2006 Thread starter #3 alexanderthegreat IS-IT--Management Joined Sep 9, 2005 Messages 70 Location US Your the best Denis Upvote 0 Downvote