HP3000-L Archives

February 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Angie Brown <[log in to unmask]>
Reply To:
Date:
Mon, 17 Feb 1997 13:20:16 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Reiner Hutsch wrote:
>
> Lat week i posted the following question to the list. Because i didn't
> recieve a copy of my posting i will try it again ...
>
> I have the following problem:
> when i try to use a string within a SQLExecDirect Statement which
> contains a apostrophe, e.g.
>
> "update DB.TABLE set string='What's new' where keyitem=1234"
>
> i get an error message.
> Is there an escape character which i can use to indicate that the
> apostrophe in "What's" doesn't terminate the hole string?
>
> TIA
>
> Reiner Hutsch
> IMW-KÖLN

Reiner,

perhaps you could try doubling the apostrophe, like so:

"update DB.TABLE set string='What''s new' where keyitem=1234"

Hope this helps,
Bob

[log in to unmask]
[log in to unmask]

ATOM RSS1 RSS2