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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:44:26+00:00 2026-05-31T21:44:26+00:00

I’m currently trying to develop a site which queries text information. I already have

  • 0

I’m currently trying to develop a site which queries text information. I already have all the text files I need, but I’m completely new to databases, and have no idea where to start.

I know I need to parse the text files and insert them into a database, but most of the information I’ve found online point to having some sort of SQL server online. How would I parse the text files and insert them on to a database, and in return, port them to a website? A place to start would be great, I’m totally lost ):

I’m somewhat experienced in Java and Python, and familiar with CSS/HTML.

  • 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-31T21:44:27+00:00Added an answer on May 31, 2026 at 9:44 pm

    Is this a big job (lots of data) or are you just new to it?

    • Get MySQL Workbench
    • Learn SQL, create some tables, choose good primary keys.
    • Learn about JDBC and prepared statements

    If you have a lot of data consider manipulating your files to do a LOAD DATA INFILE or if you really have lot manipulation consider Jasper/Talend ETL, but I would guess that is overkill.


    After reading your comments I’ve drafted some scripts.

    Login with mysql client or with workbench

    CREATE DATABASE IF NOT EXISTS `test`;
    USE test;
    

    Try these

    DROP TABLE IF EXISTS `test`.`user`;
    CREATE TABLE `test`.`user` (
      `userid` INT NOT NULL AUTO_INCREMENT   ,
      `firstname` VARCHAR(45) NOT NULL ,
      `lastname` VARCHAR(45) NOT NULL ,
      `jobdescription` TEXT NULL,
      `childhooddescription` TEXT NULL,
      PRIMARY KEY (`userid`)
    );
    
    
    DROP TABLE IF EXISTS `test`.`tempuser`;
    CREATE  TABLE `test`.`tempuser` (
      `fullname` VARCHAR(90) NOT NULL,
      PRIMARY KEY (`fullname`)
    );
    
    -- Examples you can use
    -- INSERT INTO `test`.`user` (`firstname`,`lastname`) VALUES ("bob","jones");
    -- INSERT INTO `test`.`tempuser` (`fullname`) VALUES ("JOHN DOE");
    
    INSERT INTO `test`.`user`(
      `firstname`,
      `lastname`
    )
    SELECT
      SUBSTRING_INDEX(SUBSTRING_INDEX(fullname, ' ', 1), ' ', -1) AS firstname,
      SUBSTRING_INDEX(SUBSTRING_INDEX(fullname, ' ', 2), ' ', -1) AS lastname
    FROM
      tempuser;
    
    
    SELECT * FROM `user`;
    
    DROP TABLE IF EXISTS `tempuser`;
    

    Then these

    DROP TABLE IF EXISTS `test`.`tempjop`;
    CREATE  TABLE `test`.`tempjop` (
      `fullname` VARCHAR(45) NOT NULL,
      `description` TEXT NOT NULL
    );
    
    -- Example
    -- INSERT INTO `test`.`tempjop` (`fullname`, `description`) VALUES ("JOHN DOE", "John is a programmer");
    
    
    LOAD DATA INFILE 'C:/Temp/Job.txt' INTO TABLE tempjop
         FIELDS
             TERMINATED BY ':' OPTIONALLY ENCLOSED BY '"'
         LINES
             TERMINATED BY '\r\n';
    
    SELECT
        *
    FROM
        `tempjop`
    ;
    
    UPDATE
        `user` AS U, 
        `tempjop` AS J
    SET
        U.jobdescription = J.description
    WHERE
        J.fullname = CONCAT(CONCAT(U.firstname, ' '), U.lastname)
        -- If you need first names only like 'MARY' uncomment this
        -- OR J.fullname = U.firstname;
    ;
    
    SELECT * FROM `user`;
    
    DROP TABLE IF EXISTS `tempjop`;
    

    I haven’t tested all that but hopefully it points you in the right direction.

    Good luck.

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

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to understand how to use SyndicationItem to display feed which is
I need to clean up various Word 'smart' characters in user input, including but
I have a reasonable size flat file database of text documents mostly saved in
I am trying to loop through a bunch of documents I have to put
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.