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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update syntax question 1

Status
Not open for further replies.

Luvsql

Technical User
Apr 3, 2003
1,179
CA
I have a table with data in a field X like (.NAME1.NAME2.NAME3.) I would like to update this field and remove any occurences of 'NAME2.

I tried an update using set, then replace function, but it didn't work. Any thoughts?
 
You might want to fire a second query after the preivous one using ".name2" in case you have situations where "name2" is the last in the text. But it wouldn't update those cases where "name2" was the first one.

Hope it helps,
Dalton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top