Jun 16, 2003 #1 Jamfool IS-IT--Management Apr 10, 2003 484 GB At the moment a cursor is used to go thru all the fields in the database with a column datatype varchar/char, and then replace the apostrophes. Does anyone know a quicker way to replace apostrophes?
At the moment a cursor is used to go thru all the fields in the database with a column datatype varchar/char, and then replace the apostrophes. Does anyone know a quicker way to replace apostrophes?
Jun 16, 2003 1 #2 swampBoogie Programmer Jan 6, 2003 1,660 SE Code: update t set c1 = replace(c1,'''',''),c2 = replace(c2,'''','') where c1 like '%''%' (replace is not an ANSI SQL function but many dbms suport it. Why should you replace apostrophes? Upvote 0 Downvote
Code: update t set c1 = replace(c1,'''',''),c2 = replace(c2,'''','') where c1 like '%''%' (replace is not an ANSI SQL function but many dbms suport it. Why should you replace apostrophes?
Jun 16, 2003 #3 Pekka Technical User Mar 19, 2002 107 FI Or you don't even have to use cpysplf. You can copy/paste it via CA Operation navigator. Upvote 0 Downvote
Jun 17, 2003 Thread starter #4 Jamfool IS-IT--Management Apr 10, 2003 484 GB Why should you replace apostrophes? A: We need to remove them because they cause problems when used in a data transfer program, which see them as delimiters Upvote 0 Downvote
Why should you replace apostrophes? A: We need to remove them because they cause problems when used in a data transfer program, which see them as delimiters
Jun 17, 2003 #5 sem Programmer Jun 3, 2000 4,709 UA I suppose you should change that program Regards, Dima Upvote 0 Downvote