Jun 16, 2003 #1 Jamfool IS-IT--Management Joined Apr 10, 2003 Messages 484 Location 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 Joined Jan 6, 2003 Messages 1,660 Location 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 Joined Mar 19, 2002 Messages 107 Location 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 Joined Apr 10, 2003 Messages 484 Location 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 Joined Jun 3, 2000 Messages 4,709 Location UA I suppose you should change that program Regards, Dima Upvote 0 Downvote