Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> escaping single quote in sqlldr not working
Hello,
absolute newbie here from a mysql background.
os: SunOS dev 5.8 Generic i86pc i386 i86pc oracle: 8.1.5
Seems best way to load data is with sqlldr and it works well enough but escaping a quote doesn't work, e.g.
'data\'s here '
is sent to the bad file.
I read:
http://oradoc.photo.net/ora81/DOC/server.815/a67792/ch05.htm#1462
> In DDL syntax, you can place a double quotation mark inside a
> string delimited by double quotation marks by preceding it with
> the escape character, "\" (if the escape is allowed on your
> operating system). The same rule applies when single quotation
> marks are required in a string delimited by single quotation
> marks.
I've always used the backslash for such things, certainly it's supported on the O/S.
Anyone with clues?
Thanks,
Peter