apostrophe in db2 field
Hi,
I would like to know the syntax for translate function in DB2 for the following situation :
I have to do an insert from table1 to table2
insert into table1(last_name)
select translate(last_name,'''',''') from table2;
(last name has an apostrophe (O'brien))
but it doesn't work.
Please help ASAP. need to finish a project soon!
Thanks !
Hi,
I would like to know the syntax for translate function in DB2 for the following situation :
I have to do an insert from table1 to table2
insert into table1(last_name)
select translate(last_name,'''',''') from table2;
(last name has an apostrophe (O'brien))
but it doesn't work.
Please help ASAP. need to finish a project soon!
Thanks !