Posted: Thu Feb 02, 2012 11:52 am Post subject: difficulty replacing single quote with 2 of it
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
Hello,
in calling a stored procedure, one parameter is a string. But it may contain single quote '. To excape this for the stored procedure call, I need to insert another '. So I use the replace function to do this.
content of strParm: "Bob's Saloon". - the single quote fails stored procedure call.
set strParm=replace(strParm, ''', '''');
But it results in error for the next statement.
What should I do?
thanks a lot. _________________ pcelari
-----------------------------------------
- a master of always being a newbie
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum