473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Pulling large Microsoft SQL files into MySQL

------_=_NextPart_001_01C34A01.33763174
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The MySQL manual mentions that one could specify the column and value =
separators and the end of file marker explicitly in the LOAD DATA =
statement.
=20
I'm looking for the syntax of this statement to import large data files =
(.txt) originally exported from Microsoft SQL 7.
=20
=20
Example file:.
=20
"Extract_Date"|"LAU"|"Customer_Number"|"BAN_Number "|"Telephone_Number"|"B=
ill_Date"|"Local_Usage_Credit_Amount"|"Local_Usage _Credit_Call_Count"|"Lo=
cal_Usage_Credit_Call_Seconds"|"National_Usage_Cre dit_Amount"|"National_U=
sage_Credit_Call_Count"|"National_Usage_Credit_Cal l_Seconds"|"Internation=
al_Usage_Credit_Amount"|"International_Usage_Credi t_Call_Count"|"Internat=
ional_Usage_Credit_Call_Seconds"|"Cell_Usage_Credi t_Amount"|"Cell_Usage_C=
redit_Call_Count"|"Cell_Usage_Credit_Call_Seconds" |"Other_Usage_Credit_Am=
ount"|"Other_Usage_Credit_Call_Count"|"Other_Usage _Credit_Call_Seconds"
"20030409"|"63"|"63000233"|"630002330001"|"--"|"200211"|"0"|"0"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"-555.94"|"0"|"0"
"20030409"|"63"|"63000233"|"630002330001"|"--"|"200302"|"0"|"0"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"-594.24"|"0"|"0"
"20030409"|"63"|"63000233"|"630002330001"|"--"|"200303"|"0"|"0"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"-615.21"|"0"|"0"
"20030409"|"63"|"63000235"|"630002350001"|"0539480 616"|"200201"|"-10.53"|=
"-14"|"-2346"|"-4.89"|"-6"|"-534"|"-1.3"|"-1"|"-26"|"-14.82"|"-4"|"-570"|=
"0"|"0"|"0"
"20030409"|"63"|"63000283"|"630002830001"|"0539480 627"|"200111"|"-6.14"|"=
-1"|"-7804"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"|"0"| "0"
"20030409"|"63"|"63000283"|"630002830001"|"0539480 627"|"200201"|"-140.79"=
|"-143"|"-101519"|"-68.16"|"-43"|"-9723"|"0"|"0"|"0"|"-5.68"|"-4"|"-240"|=
"0"|"0"|"0"
"20030409"|"63"|"63000421"|"630004210001"|"0539362 1802"|"200303"|"0"|"0"|=
"0"|"-128.27"|"-22"|"-4680"|"0"|"0"|"0"|"-39.65"|"-6"|"-840"|"0"|"0"|"0"
"20030409"|"63"|"63000459"|"630004590001"|"0539481 533"|"200302"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"-.01"|"0"|"0"|"0"|"0"|"0"
"20030409"|"63"|"63000495"|"630004950001"|"0539490 419"|"200302"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"-.02"|"0"|"0"|"0"|"0"|"0"
"20030409"|"63"|"63000519"|"630005190001"|"0539490 719"|"200302"|"0"|"0"|"=
0"|"0"|"0"|"0"|"0"|"0"|"0"|"-.01"|"0"|"0"|"0"|"0"|"0"
"20030409"|"63"|"63000521"|"630005210001"|"0539823 312"|"200111"|"0"|"0"|"=
0"|"-12.29"|"-5"|"-2100"|"-13.5"|"-1"|"-180"|"-264.15"|"-63"|"-17340"|"-3=
4.15"|"-19"|"-6360"
=20
I need to specify the text separator as " " and the column separator as =
|.
=20
=20
=20
Thanx,
=20
Rudolf.
=20

------_=_NextPart_001_01C34A01.33763174--
Jul 19 '05 #1
0 1345

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Murry | last post by:
I have a camera system (Axis) which stores JPG via FTP 1-10fps. There is also a motion jpg live stream. I am trying to store these images either in JPG or in video format so they can be...
1
by: user mysql | last post by:
HELLO FRIENDS. HERE A FANTASTIC NEWS FOR MYSQL WINDOWS USER. READE THIS. The article is grab from www/internetnews/com/ DO YOU THINK THAT IS A GOOD NEWS ? ...
0
by: Rudolf Bekker | last post by:
------_=_NextPart_001_01C34A01.33763174 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The MySQL manual mentions that one could specify the column...
0
by: Jonathan | last post by:
Hi, I installed a Apache 2.0.47, PHP 4.3.2 and MySQL 3.23.38 on windows2000 and I installed a forum on which I enabled the feature to upload files. Together with some friends of mine I make music...
6
by: Matt Liverance | last post by:
I REALLY dont want to switch to oracle :( but I cant get these tables working any faster. I've got 2 dedicated servers, each with a slave, all run 32gig 15k rpm raid 5 on u320 perc raid...
2
by: T.A.C. One | last post by:
I have to handle a very big (~50 gigabyte) database (quite all in a table), and I am going to use mysql. Can mysql handle all that ammount of data? What problems I am going to have? Should I...
10
by: Avi | last post by:
Hi I need to read in a large set of text files (9GB+ each) into a database table based on fixed width lengths. There are several ways to complete this, but I am wondering if anyone has...
2
by: daniel | last post by:
I have the following scenario. A mysql database running 3 databases. It is version 5.0.27 on Windows XP Prof.. All innodb databases. The one database is particularly large (7.8GB of...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.