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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:26:22+00:00 2026-06-06T08:26:22+00:00

I have around 1000 html files in my local computer and I have to

  • 0

I have around 1000 html files in my local computer and I have to import them into database table in a single column . I mean one full file into one cell and 1000 HTML files into 1000 rows .

Table structure

CREATE TABLE `content` (
  `ID` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `data` text ,
  PRIMARY KEY (`ID`)
)

one row contains ID and one html file contents

I tried

load DATA LOCAL INFILE 'C:\\Users\\userD\\Desktop\\data\\alter-data.html' INTO TABLE content LINES TERMINATED BY '</html>';

since each file end line is </html> but that didn’t help to load any data ..

Can any one help me on this?

Thank You

Regards

Kiran

  • 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-06T08:26:27+00:00Added an answer on June 6, 2026 at 8:26 am

    I needed to do the same thing and spent ages working it out but it turned out to be simple.

    Note the test table, test_html field was defined as a “text” field

    truncate table test;
    load data local infile 'data.htm' 
    into table test
    fields terminated by '</html>'
    lines terminated by '</html>'
    (test_html);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database table in MYSQL with around 1000 rows. In the table
I have around 1000 text files of 350 KB each. Files are named as
i have around 1000 of rows in database which i want to divide in
i have a directory with around 1000 files....i want to run a same code
In my application am having lot bitmaps around 1000. I have to merge them
I have around 1000 pdf filesand I need to convert them to 300 dpi
I have around 1000 processes which should be executed independently. I have 8 cores.
Okay. I have completed my first python program.It has around 1000 lines of code.
I have a matrix having around 1000 geospatial points(Longitude, Latitude) and i am trying
I have a list of elements around 1000. Each element (objects that i read

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.