Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 253519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:46:07+00:00 2026-05-11T21:46:07+00:00

FIRST: Yes, I know about CONCATENATE and CONTINUEIF, but I might not be smart

  • 0

FIRST: Yes, I know about CONCATENATE and CONTINUEIF, but I might not be smart enough to understand the documentation. I don’t “get” how they solve my problem. Thank you…

I am in the position of having to create a file for importing into an Oracle DB by way of sqlldr.

The columns are required to be delimited by “~” (Don’t ask.) In creating the file file, I have a few concerns about the way sqlldr behaves in respect to Quotes and Newlines.

If a simple row is to contain the column values:

One, Hello~World I "Like" you, and Three

How should I output this to the file? My first guess is

One~"Hello~World I "Like" you"~Three

I imagine it would be easy to import with FIELDS TERMINATED BY “~” OPTIONALLY ENCLOSED BY ‘”‘ specified in the CTL file. What I don’t know how to handle are the quotes around the Like when I create the file. Should those be additionally escaped? How?

Additional Bonus Question:
The fields may contain line-brakes. If written out “raw” it would turn into

one~Line
Break~three

Is there an option in the CTL file that I can use to “stitch” these back together? The break may occur in different columns and there may be more than one break per record, or column.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:46:07+00:00Added an answer on May 11, 2026 at 9:46 pm

    After some experimentation this is what I discovered:

    While using

    FIELDS TERMINATED BY "~" OPTIONALLY ENCLOSED BY '"' 
    

    in the CTL file and a table structure of

    key:number, msg:varchar2
    

    The right way to handle quotes and delimiters are

    1~Hello World
    2~"Hello~World"
    3~"Hello ""World"""
    4~"Hello~""World"""
    

    So, If the data contains the delimiter, quote the whole value and replace quotes in the value with 2 quotes.

    As far as newlines go, I am going to ask that in another question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, yes I know about this question , but I'm looking for a bit
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
First of all, yes, I know I'm a newbie, and this is my first
Yes, I've googled and I could not find the answer to this problem. First
First, my question might sound like a duplicate, but I have been going through
From what I know about PHP, the following syntax is not legal: if ($s
I don't know very well about RAM and HDD architecture, or how electronics deals
i know its already allot of info about that in internet, but i'm new
First let me start of saying I know absolutely nothing about c++ and I
First off, yes, I know that the VS Setup Projects are evil. It's what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.