Solved

loading data using sql loader in mysql?

Posted on 2008-10-21
4
2,151 Views
Last Modified: 2012-06-27
Hi , I have a table that contains some data. I loaded this table using sql loader and used the following script;

load data infile 'c:/channel_lineups/load/all_code.txt 'into table `channel` (channel_id, channel_name, satellite);

Now I need to add more data to this table without deleting the existing data. How do I do this using sql loader? Thank you for the help.

A
0
Comment
Question by:aej1973
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 100 total points
ID: 22772476
You can use the same script, existing data will not be deleted by the load data infile statement. It must of course only contain new data, it will not update old records.
0
 

Author Comment

by:aej1973
ID: 22773100
ok, I will check this once I get to work tomorrow. Thx.
0
 
LVL 32

Expert Comment

by:awking00
ID: 22777973
I'm not familiar with using sql loader for MySQL, thought it was an Oracle utility. In Oracle, you can include the APPEND keyword to add records to a table. Perhaps that is the same for MySQL.
0
 

Author Closing Comment

by:aej1973
ID: 31508549
Thank you, that woks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mysql not caching queries 4 63
mySQL. SQL query. Substitute for Numeric key word. 3 47
MSSQL 2008 with mySQL webservers 7 41
Trigger usage 2 59
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now