Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: LOAD DATA INFILE in MaxDB

From: JUNG, Christian <christian.jung(at)saarstahl.com>
Date: Fri Jul 13 2007 - 07:31:16 EDT


Hi Chris,

nope there's not a statement like LOAD DATA INFILE. You have to use the loader(cli) instead. For CSV data it's quite useable but has some limitations about BLOBs (have to be in a separate file), new-line in strings (not allowed) etc.

<http://dev.mysql.com/doc/maxdb/en/59/025741c0c28447e10000000a1550b0/content .htm>

Just have a look at the documentation about it. I think DATALOAD will be your friend.

Here's an example:

Sample of an import-specification-file:
---8<---

DATALOAD TABLE .	UPDATE DUPLICATES
	ID       1
	FIELD_A  2
	FIELD_B  3

INFILE '<INPUT_FILE>'

    COMPRESSED
    ASCII SEPARATOR ';'
    DELIMITER ''
    TIMESTAMP 'YYYY-MM-DD HH:MM:SS'
    DATE 'YYYY-MM-DD'
    TIME 'HH:MM:SS'
---8<---

Command:
sdb@mydbserver:~> loadercli -n <DB_HOST> -d <INSTANCE> -u <USER>,<PASSWORD> -b <COMMAND_FILE>

Do you need help?X

bye
Chris

> -----Original Message-----
> From: Christian Sell [mailto:kuchri@gmx.de]
> Sent: Friday, July 13, 2007 1:14 PM
> To: maxdb@lists.mysql.com
> Subject: LOAD DATA INFILE in MaxDB
>
>
> Hello,
>
>
>
> I'm just trying to replace the MySQL Database by a MaxDB.
> Unfortunately I
> used quite a lot of "LOAD DATA INFILE" statements to speed up
> INSERTS with a
> lot of entries. Is there this or an alternative statement for
> the MaxDB too?
>
>
>
>
> Kind regard
>
> Chris
>
>

-- 
MaxDB Discussion Mailing List
For list archives: 
http://lists.mysql.com/maxdb
To unsubscribe:    
http://lists.mysql.com/maxdb?unsub=lists@pantek.com
Received on Fri Jul 13 07:31:36 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 02 2007 - 01:57:05 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library