Hi, I have used an application to import some data from a text file to mysql. I have used the following code.
try
{
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
stmt1= (Statement) conn.createStatement();
int deleteRows = stmt1.executeUpdate("delete from powerdata where dateformat < dateformat_sub(now(), interval 8 month)");
query = "LOAD DATA LOCAL INFILE \"E:\\powerdata.txt\" INTO TABLE powerdata set dateformat=str_to_date(date, '%m/%d/%Y' '%H:%i:%s');";
int Update= stmt.executeUpdate(query);
}
But the query to load the data from text to mysql is null. Can anybody tell me where I have made a mistake?