Solved

loading data using sql loader in mysql?

Posted on 2008-10-21
4
2,200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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