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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:06:27+00:00 2026-05-24T09:06:27+00:00

I have a database setup like `id` int(11) unsigned NOT NULL auto_increment, `ad-id` int(11)

  • 0

I have a database setup like

  `id` int(11) unsigned NOT NULL auto_increment,
  `ad-id` int(11) default NULL,
  `advertiser-id` int(11) default NULL,
  `advertiser-name` varchar(250) default NULL,
  `advertiser-category` varchar(250) default NULL,
  `buy-url` varchar(255) default NULL,
  `catalog-id` varchar(255) default NULL,
  `currency` varchar(3) default NULL,
  `description` varchar(255) default NULL,
  `image-url` varchar(255) default NULL,
  `in-stock` varchar(255) default NULL,
  `isbn` varchar(13) default NULL,
  `manufacturer-name` varchar(255) default NULL,
  `manufacturer-sku` varchar(50) default NULL,
  `name` varchar(255) default NULL,
  `price` decimal(10,2) default NULL,
  `retail-price` decimal(10,2) default NULL,
  `sale-price` decimal(10,2) default NULL,
  `sku` varchar(50) default NULL,
  `upc` varchar(50) default NULL,

I am trying to load the data like this:

LOAD DATA LOW_PRIORITY LOCAL INFILE "/home/datafeed/tempfile.csv" REPLACE INTO TABLE products_import FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY """" LINES TERMINATED BY "\n" (ad-id, advertiser-id, advertiser-name, advertiser-category, buy-url,catalog-id,currency, description,image-url,in-stock,isbn,manufacturer-name,manufacturer-sku,name,price,retail-price,sale-price,sku, upc);

but it doesn’t seem to like database names with dashes in them. The field names are pretty much set in stone. If I try to insert without the field names it sets everything in the wrong field (starts with autoinc)

I’m not very good with MySQL any help would be appreciated.

  • 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-24T09:06:27+00:00Added an answer on May 24, 2026 at 9:06 am

    Put back-ticks around the field names: `ad-id`, etc., like in your table structure listing.

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

Sidebar

Related Questions

So here's the setup. I have two tables: CREATE TABLE dbo.TmpFeesToRules1(Name varchar, LookupId int)
Lets say I have a database table called Scrape possibly setup like: UserID (int)
I have setup multiple SQL Service Broker Queues in a database but have not
Suppose I have a database like this: This is set up to give role-wise
We have SQL Server database setup. We are setting up a replication scenarios where
If you've got a database setup in Django, how can you have the TestRunner
I have a tomcat instance setup but the database connection I have configured in
I have a web-app-database 3 tier server setup. Web requests data from app, and
I have a tool that is setup to query our Clearquest Database to return
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.

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.