Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update part of column 1

Status
Not open for further replies.

epkiran

Programmer
Jun 26, 2001
7
SE
I got a tip using this statement in order to update the domain adress in an emailadress, but I have problem with the function instr......

UPDATE Table
SET Column = Left([Column], instr([Column],"@")) & "new.se"
WHERE Column LIKE "*old.se"
 
Hi there,
Try this:
-----------------
UPDATE Table
SET Column = SUBSTRING([Column],1,charindex('@',[Column])+1)+"new.se" WHERE Column LIKE "%old.se"

-----------------




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top