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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:31:02+00:00 2026-06-04T12:31:02+00:00

This is the table I want to import in: create table if not exists

  • 0

This is the table I want to import in:

create table if not exists Medici(
        m_id int unsigned AUTO_INCREMENT PRIMARY KEY,
        m_nume VARCHAR(50),
        m_prenume VARCHAR(50),
        Statut ENUM('primar', 'specialist'),
        Specialitate VARCHAR(50)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

And the CSV starts with:

Nume,Prenume,Tip,Specialitate
Bunica,Mihai-Daniel,primar,reumatologie
Donca,Cornelia-Ana,primar,chirurgie
Achiriloaie,Lorand-Levente,specialist,neurologie

The code I wrote is:

load data infile 'D:/xxxxxxxxxxxxx/xxxxxxx/xxxxxxxxxx/xxxxxx/xxxxxxxxxx/medici.txt'
    into table Medici
    character set utf8
    fields terminated by ','
    lines starting by 'Nume,Prenume,Tip,Specialitate\n'
          terminated by '\n' 
    (m_nume,m_prenume,Statut,Specialitate);

Note: I changed terminated with \n, \r, \r\n, and I still get 1 row. Even with removing lines terminated by and it’s not working.

Note: I pasted quickly and messed up a bit, there are 4 rows there. And ye the CSV I assume it’s formated correctly

more of the code here:

Nume,Prenume,Tip,Specialitate
Bunica,Mihai-Daniel,primar,reumatologie
Donca,Cornelia-Ana,primar,chirurgie
Achiriloaie,Lorand-Levente,specialist,neurologie
Papuc,Raducu-Liviu,primar,homeopatie
Cucuiu,Nutu,primar,ortopedie
Buia,Tache,specialist,ginecologie
Dragomanu,Mitrut,specialist,ecografie
Ticu,Simona,specialist,psihiatrie
Ene,Adrian-Stefan,specialist,pediatrie
Copae,Toma,primar,neurologie
Hotoi,Dragos Alin,specialist,pediatrie
Ceafalau,Vincenţiu Mihail,primar,pediatrie
Briceag,Anca Stefana,primar,imagistica
Condrea,Nutu,primar,fizioterapie
Cruceru,Ioana-Loredana,primar,dermatologie
Soarece,Dan-Cristian,primar,o.r.l.
Tatasel,Alexandru-Ovidiu,specialist,psihologie
Sterian,Gologaneanu,primar,chirurgie
Postelnicu,Habib,primar,chirurgie
Silviu ,Adrian Ionut,primar,dermatologie
Paius,Ioana,specialist,ortopedie
Borza,Marius Florian,specialist,fizioterapie
Tamas,Ciprian Costel,primar,chirurgie
Ograzeanu,Cristina Alexandra,primar,endocrinologie
Rildo,Alex,specialist,ecografie

In the CSV, these lines are merged ( one row to another )
For example:
After reumatologie it starts with the name but when I paste the code you can see it’s actually an \n Bunica,Mihai-Daniel,primar,reumatologieDonca,(…. here is 2nd row and so on)

  • 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-04T12:31:03+00:00Added an answer on June 4, 2026 at 12:31 pm

    Try this command:

    load data local infile

    ‘D:/xxxxxxxxxxxxx/xxxxxxx/xxxxxxxxxx/xxxxxx/xxxxxxxxxx/medici.txt’

    into table Medici character set utf8 fields terminated by ‘,’

    lines terminated by ‘\n’ IGNORE 1 LINES (m_nume,m_prenume,Statut,Specialitate);

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

Sidebar

Related Questions

CREATE TABLE hostname_table ( id INT NOT NULL AUTO_INCREMENT, hostname CHAR(65) NOT NULL, interval_avg
this table i want to create job_id dynamic Jobs Title text Job Description text
I want to create this table in Oracle. This is only the table SQL
I have this table: User id INT PK login VARCHAR UNIQUE I want to
I want to create this JSF table with paging and sorting. This is JSF
I want to create a JSF table like this . But instead delete button
I have several SQL files that I want to import. An example: CREATE TABLE
I have db with this table (TableToDo): http://goo.gl/NlTEk I want display all records in
I have this JSF table. I want to add row numbers. <?xml version=1.0 encoding=UTF-8?>
I have this JSF table which is used to display data. I want to

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.