עבור לתוכן

המרת קובץ טקסט ל MYSQL

Featured Replies

פורסם

שלום,

יש לי מספר רב של קבצי DATA (ענקיים) ואני צריך להמיר אותם לדאטא ב MYSQL (בעצם לטבלה אחת גדולה).

מצאתי הסבר מסוים פה : http://www.flatmysql.com/help/putdelimited.htm

אבל האם יש דרך יותר נייטיב או יותר יעילה?

תודה מראש,

פורסם
  • מחבר

ok

I don't have hebrew in my linux so I will write in eng.

The txt file acualy fields of informations, each line contains the same fields & the fields can be separated how ever I wish, comma or space for exapmle.

Sorry for the m it's suppose to be regular M.

Oh,

I am in big trouble I was sure I could use the help in the link above, But it uses a program I need to buy!

HELP...

----------------------------------------------------------------------------------------------------------

edited:

I think I found my answer ->

LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet

from MySql reference manual, I hope it will work.

I will be glad to hear any other suggestions.

:-\

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים