Print Thread
Text Importer - handling embedded single quotes?
#19835 09/29/05 01:45 AM
Joined: Sep 2004
Posts: 495
Dartmouth College, Hanover, NH...
Member
OP Offline
Member
Joined: Sep 2004
Posts: 495
Dartmouth College, Hanover, NH...
Slap me if I missed this feature, but I'm trying to import from a text file that includes apostrophe's in people's name (e.g. O'Mallory). The text importer seems to handle those okay, unless I also want to put the name in a SQL function.

In my case, the names sometimes come in all lowercase and I want to use: initcap('#').

Did I miss something or do I need to do an UPDATE after importing via Text Importer to achive this?

Thanks,


Stew

"That's not a bug, it's a feature?"
Re: Text Importer - handling embedded single quotes?
#19836 10/13/05 07:30 PM
Joined: Oct 2002
Posts: 59
Quebec,Canada
D
Member
Offline
Member
D
Joined: Oct 2002
Posts: 59
Quebec,Canada
I have exactly the same problem in a address field where I have to do a call to Oracle upper function. It would be very nice if you could change the way of calling functions to handle quotes "'". For now I will create a before insert trigger on the target table.

By the way, text importer saves me a lot of time.

Regards.

Re: Text Importer - handling embedded single quotes?
#19837 05/01/08 10:36 PM
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Member
Offline
Member
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Has this issue ever been resolved? I'm using 7.1.5... and I'm experiencing what Stew describes above.

Re: Text Importer - handling embedded single quotes?
#19838 05/02/08 12:39 AM
Joined: Dec 2002
Posts: 491
Wellington, NZ
Member
Offline
Member
Joined: Dec 2002
Posts: 491
Wellington, NZ
if your database is 10g or up, why not use the new quoting system?

initcap(q'{#}')

select q'{O'Mallory}' from dual


... suck in your lips and frown like a werewolf ...
Re: Text Importer - handling embedded single quotes?
#19839 05/02/08 12:40 AM
Joined: Dec 2002
Posts: 491
Wellington, NZ
Member
Offline
Member
Joined: Dec 2002
Posts: 491
Wellington, NZ
just so you know, the syntax highlighter, ( colours for strings, numbers etc ), does not handle this at all...


... suck in your lips and frown like a werewolf ...
Re: Text Importer - handling embedded single quotes?
#19840 05/03/08 08:42 PM
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Member
Offline
Member
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Thanks very much for that, rbrooker. The db on which I'm doing this import is 9.2... however, I do have an Ora 10 db available, and will try it on that one.

BTW... Marco, are you listening?... along with code "beautification", I agree that syntax highlighting needs to be brought up-to-date. Could you PLEASE, PLEASE work on this for ver 8??


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.045s Queries: 13 (0.019s) Memory: 2.5204 MB (Peak: 3.0428 MB) Data Comp: Off Server Time: 2024-05-18 22:36:15 UTC
Valid HTML 5 and Valid CSS