MySQL Forums
Forum List  »  New in 4.1: Subqueries

Re: loading of data
Posted by: Roland Bouman
Date: January 10, 2006 07:57PM

mm, in what format do you have your data available? there are quite a lot ways.

1:

INSERT INTO <tablename> (colname1,colname2,...)
values (row1value1, row1value2, ...)
, (row2value1, row2value2, ...)
....
;

see: http://dev.mysql.com/doc/refman/5.0/en/insert.html


2:

INSERT INTO <tablename> (colname1,colname2,...)
SELECT col1, col2...
FROM ..
...

see: http://dev.mysql.com/doc/refman/5.0/en/insert-select.html

3:

LOAD DATA INFILE

http://dev.mysql.com/doc/refman/5.0/en/load-data.html


4: the mysqlimport commandline utility:

http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html


And maybe there are more ways. Please be specific: what data do you have, and where do you want to load it into.

Options: ReplyQuote


Subject
Views
Written By
Posted
3901
January 02, 2006 02:44PM
Re: loading of data
2468
January 10, 2006 07:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.