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

CONCAT in UPDATE query won't work

Status
Not open for further replies.

renepaulin

Technical User
Jan 31, 2005
6
CA
Hi,

Can someone tell me why this won't work for me ?
Code:
UPDATE Temp
SET Field2 =('LEFT(Field2,'*-')' CONCAT '0' CONCAT 'RIGHT(Field2,' #')')
WHERE Field2 LIKE '*- #';
I'm getting a syntax error on the SET line.

Thanks,
 
What do you want to do ?
Take a look at the InStr function and the & operator.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top