November 21, 2011 at 11:17 am
I need to replace part of a field. Field contains |3^VA that needs to replaced with |3^. It is a chunk field so there is other information in the field. I am unable to have the replace work correctly. Please help.
November 21, 2011 at 11:20 am
What's wrong with => replace (fieldname, '|3^VA', '|3^')
November 21, 2011 at 11:31 am
Getting message that unable to parse query with that - complete script:
UPDATE PM.Ailment_Info
SET chunk = replace(chunk, '|3^VA', '|3^')
WHERE ailment_id = '1
November 21, 2011 at 11:36 am
Jim Woods (11/21/2011)
Getting message that unable to parse query with that - complete script:UPDATE PM.Ailment_Info
SET chunk = replace(chunk, '|3^VA', '|3^')
WHERE ailment_id = '1
assuming ailment_id is an integer, you have an extra quote in front of the 1
this parses syntactically:
UPDATE PM.Ailment_Info
SET chunk = replace(chunk, '|3^VA', '|3^')
WHERE ailment_id = 1
Lowell
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply