Re: Importing Data from an XML Document into a MySQL Table
It may be best to load all such rows, then do filtering in a separate step. A common paradigm is:
CREATE TEMPORARY TABLE t (...);
LOAD DATA INTO t ...;
INSERT INTO real_table SELECT ... FROM t WHERE ...;
The SELECT may include expressions, conversions, etc, and a WHERE for filtering.
Another technique is to use @variables in the LOAD DATA statement itself. This lets you do some amount of conversion on the fly. See the online manual for examples.
Subject
Written By
Posted
Re: Importing Data from an XML Document into a MySQL Table
June 27, 2014 05:38AM
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.