Jun 26, 2001 #1 epkiran Programmer Jun 26, 2001 7 SE I want to update the column emailadress but only the domainadress.. UPDATE Table SET Column LIKE '%new.se' WHERE Column LIKE '%old.se' but it seems to be impossible using wildcards in the SET-statement...
I want to update the column emailadress but only the domainadress.. UPDATE Table SET Column LIKE '%new.se' WHERE Column LIKE '%old.se' but it seems to be impossible using wildcards in the SET-statement...
Jun 26, 2001 #2 tlbroadbent MIS Mar 16, 2001 9,982 US You are correct. You cannot use LIKE in the SET statement. Also, JET prefers * rather than % for the wildcard character. You can try this statement. UPDATE Table SET Column = Left([Column], instr([Column],"@") & "new.se" WHERE Column LIKE "*old.se" Terry http://members.home.net/tlbroadbent/sqlarticles.htm "I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes Upvote 0 Downvote
You are correct. You cannot use LIKE in the SET statement. Also, JET prefers * rather than % for the wildcard character. You can try this statement. UPDATE Table SET Column = Left([Column], instr([Column],"@") & "new.se" WHERE Column LIKE "*old.se" Terry http://members.home.net/tlbroadbent/sqlarticles.htm "I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes