Вопрос

Has anybody tried using load data infile MySQL statement with ormlite? I've looked up the ormlite reference guide but did not find any example on this. I'm a newbie, so please help out.

Это было полезно?

Решение

I would think that the ORMLite Dao.executeRaw() method would work with this statement -- or any similar. Here are the javadocs for that routine. Something like:

int numRowsChanged =
   dao.executeRaw("load data infile '" + infile.getPath() + "'");
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top