dbTalk Databases Forums  

Escaping characters ?

comp.databases.sybase comp.databases.sybase


Discuss Escaping characters ? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Magnus
 
Posts: n/a

Default Escaping characters ? - 11-03-2003 , 06:44 AM






Is there any way a can 'escape' characters ?
I need to hide a '-sign but I dont know how .
Im using jdbc/CallableStatement and inserting
a lot using batch . 'A lot' is whats preventing
me to use preparedstatments (a limitation of
1000 variables in my setup) . It turned out that
the users expected to use ' in theire data .

best regards Magnus

Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Escaping characters ? - 11-03-2003 , 09:34 AM






On Mon, 03 Nov 2003 04:44:38 -0800, Magnus wrote:

Quote:
Is there any way a can 'escape' characters ?
I need to hide a '-sign but I dont know how .
Im using jdbc/CallableStatement and inserting
a lot using batch . 'A lot' is whats preventing
me to use preparedstatments (a limitation of
1000 variables in my setup) . It turned out that
the users expected to use ' in theire data .
Normally you can escape quotes by doubling them - ie convert
"it's a string" to "it''s a string".

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.