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

  • Home
  • SEARCH
  • 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 9264849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T13:55:30+00:00 2026-06-18T13:55:30+00:00

I have an application which populates a text file with information in CSV format.

  • 0

I have an application which populates a text file with information in CSV format. The problem is, the number of columns for each records should be flexible and it’s not constant. I am trying to implement the same datastructure but in MySQL for faster reading and parallel writing from many nodes.

Here is a sample taken from my CSV File

like|love|adore|admire
hate|dislike
revive|resurrect
info|information|pieces of information|data
shoot|snipe|kill|hunt

Each record represents words with the same meaning. Later on, I get the synonyms of a word using that CSV file. For example, I get the synonyms for the word hate which is dislike using a function in my application that parses the csv file and outputs the matching words.

What options do I have to do the same implementation approach but using 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-18T13:55:31+00:00Added an answer on June 18, 2026 at 1:55 pm

    You are dealing with many-many relationships here. The off-the-top-of-my-head solution would look something like:

    CREATE TABLE words (
        id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
        word VARCHAR(40) NOT NULL UNIQUE
    );
    CREATE TABLE synonyms (
        word_id INT UNSIGNED NOT NULL,
        synonym_id INT UNSIGNED NOT NULL
        PRIMARY KEY (word_id, synonym_id)
    );
    

    Then, to get all the synonyms for word $X with an id of $Y:

    SELECT w.id, w.word
    FROM synonyms s
    JOIN words w ON (s.synonym_id = w.id)
    WHERE s.word_id = $Y;
    

    This way you could also add antonyms at some point.

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

Sidebar

Related Questions

I have a static map in my application which populates when I click on
I have an application which is receiving data for thousands (say 50,000) subjects. Each
I have an application which is packaged as a .war file. It has GWT
In my struts 1.2 application i have some fileds in text box which is
I have a wpf application which has combo box and multiple text boxes. On
I have a simple web application in which I have created a wizard, each
I have a list box on my WinForms application which populates with the following
I have application which uses Sherlock ActionBar package. The application uses platform-specific behavior for
I have application which needs to use a dll (also written by me) which
I have an application which uses the microsoft kinect device. The thing is that

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.