Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Use of the quote / apostrophe in text fields
Thank Larry for the quote delimiter ... not the larry_at_oracle, but larry_at_Perl instead ...
Raj
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Robson, Peter
Sent: Tuesday, March 16, 2004 4:18 AM
To: 'oracle-l_at_freelists.org'
Subject: RE: Use of the quote / apostrophe in text fields
Thanks for that, guys -
Yes, been down that route, but it is not strictly germaine to the problem. Nevertheless it is a useful technique which I have applied widely. Things become interesting when you have up to a dozen quotes lined up on either side of your data value, which can happen when the data value is itself a quote (think about it...).
No, the problem here is when a field arrives for processing in an update script, and is thus bounded by a quote at start and finish, but ALSO contains an embedded quote. The parser scans down the line of characters, encounters the second quote, assumes that is the end of the field - and all hell breaks loose.
The answer (thank you Pete Sharman) is in 10g, where one can, so it seems, re-define the text string delimiter. I'm just glad someone in Oracle saw fit to address this particular point.
peter
edinburgh
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Tue Mar 16 2004 - 05:54:57 CST
-----------------------------------------------------------------