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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:50:27+00:00 2026-06-15T10:50:27+00:00

This script DROP TABLE IF EXISTS cmx_siusd_m1; CREATE TABLE cmx_siusd_m1(trade_date DATETIME, si_open DECIMAL(8,5), si_high

  • 0

This script

DROP TABLE IF EXISTS cmx_siusd_m1;
CREATE TABLE cmx_siusd_m1(trade_date DATETIME, si_open DECIMAL(8,5), si_high DECIMAL(8,5), si_low DECIMAL(8,5), si_close DECIMAL(8,5), si_ticks INT, 

si_oi INT, PRIMARY KEY(trade_date));

LOAD DATA INFILE 'D:/datafolder/cmx_siusd_m1.csv' IGNORE INTO TABLE cmx_siusd_m1 FIELDS TERMINATED BY ','
IGNORE 1 LINES (@trade_date, si_open, si_high, si_low, si_close, si_ticks, si_oi)
SET trade_date = STR_TO_DATE(@trade_date, '%Y.%m.%d %H:%i');

can’t read this data

2009.04.17 13:45,11.95000,11.97000,11.94000,11.96000,41,0  
2009.04.17 13:46,11.95000,11.97000,11.94000,11.95000,34,0  
2009.04.17 13:47,11.96000,11.97000,11.94000,11.96000,32,0  
2009.04.17 13:48,11.95000,11.97000,11.93000,11.96000,39,0  
2009.04.17 13:49,11.97000,11.98000,11.94000,11.97000,42,0  
2009.04.17 13:50,11.95000,11.98000,11.95000,11.97000,32,0  
2009.04.17 13:51,11.96000,11.98000,11.96000,11.96000,34,0  

I get the errors incorrect decimal value, incorrect integer value, and incorrect datetime value for each of the column tables in mysql.

  • 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-15T10:50:29+00:00Added an answer on June 15, 2026 at 10:50 am

    After discussion in comments – your problem is format of your text file. After trying \r\n and \n line termination we tried to create new file, with windows format and it worked.

    So problem is weird file format, with unknown line termination. If you need to use that file format (it comes from something and you dont want to re-write new file each import) – you can open that file in hexeditor and see what character codes are at the end of line.

    Maybe this is \n\r (not \r\n).

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

Sidebar

Related Questions

This is my Create table script: DROP TABLE IF EXISTS `wp_beats`; CREATE TABLE .`wp_beats`
I'm running the following query throug a PHP script DROP TABLE IF EXISTS `address`;CREATE
I have a script which has a DROP TABLE command like this: IF EXISTS
2 Separate questions. I am using this script to drop a table [SOLVED] BEGIN
When making a SQL script to create a trigger on a table, I wanted
This is my script to create the database. Thanks in advance for the help
This script saves the files as /home/name/main/all my files and stuff . I want
This script cannot find bannersize unless I write <div id=bannersize></div> before the javascript. The
This script works fine on single click but on double click it shows both
This script successfully generated the pdfs to a folder tmp/.... However the ZIP output

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.