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 8281881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:11:19+00:00 2026-06-08T10:11:19+00:00

I have a CSV whihc contains 3 fields as below: value1, value2, value 3

  • 0

I have a CSV whihc contains 3 fields as below:

value1, value2, value 3

Note: there is a space between “value” and “3” in the 3rd field.

I am uploading this data row by row to Oracle DB using perl DBD::Oracle and DBI.

here is the query that I am using to upload:

$dbh->do ("INSERT INTO $table VALUES ($col1_value, $col2_value, $col3_value)");

however, it is faling to upload and complaining like below:

DBD::Oracle::db do failed: ORA-00917: missing comma (DBD ERROR: error possibly near <*> indicator at char 103 in 'INSERT INTO TABLE_NAME VALUES (value1, value2, value <*>3 )')

So it is failing on hte 3rd value whihc contains a space.

could you guide me on how to upload the string with “Space” in it to Oracle.

BTW, I am not oracle guy so please point me if anything that I am doing is wrong.

Thnaks.

  • 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-06-08T10:11:20+00:00Added an answer on June 8, 2026 at 10:11 am

    For many reasons (security, efficiency, correctness) you want to be using placeholders to put values into SQL.

    my $rows = $dbh->do (
        "INSERT INTO $table VALUES (?, ?, ?)",
        undef,
        $col1_value, $col2_value, $col3_value
    );
    

    This avoids needing to do any escaping both for syntactical and security purposes.

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

Sidebar

Related Questions

I have a CSV-file delimited by colons, but it contains text-fields wrapped in quotes,
I have a Testing project that contains a csv file which a webtest uses
I have a source folder which contains 4 csv files with different no of
I have a CSV file the first row of which contains the variables names
I have a CSV file the first row of which contains the variables names
I have a CSV file which contains an ID and several other columns. I
I have a little csv which contains foreign characters, like Chinese. How can I
I have a package which contains a csv file which I put in inst/extdata
I have two .csv files containing correlation matrices exported from R. One file contains
I have a VB web application that reads from a CSV file which contains

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.