escaping strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devikacs
    New Member
    • Jun 2007
    • 96

    escaping strings

    My query mails because some of my data [varchar fields] contains characters like / , '
    Can i do something about it?
  • docdiesel
    Recognized Expert Contributor
    • Aug 2007
    • 297

    #2
    Hi,
    Originally posted by devikacs
    My query mails because some of my data [varchar fields] contains characters like / , ' Can i do something about it?
    could you give an example? If you're executing the query on the shell, you'd better enclose it in double " quotes. Additionally, if there're double quotes in the query itself you've got to escape them by \" otherwise the shell will cut the query string at this place.

    Regards,

    Bernd

    Comment

    Working...