Hello,

I want to load a csv file into H2. Some of the fields in the file are
CLOBs, and some of those CLOBs have newlines in them.

How do I format the file appropriately so that H2 CSVREAD interprets
the multiline text CLOBs as single field values?

This is the technique I'm using right now (without CLOBs):

     String sqlString = String.format("INSERT INTO %s (SELECT * FROM
CSVREAD('%s') )",
         target_.getSchemaQualifiedTableName(),
csvFile_.getAbsolutePath());


thanks,

Joe

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to