Connection conn = getDBConnection(); //MYSQL CONNECTION.
conn.prepareStatement("use testspl").execute();
conn.prepareStatement("SOURCE c:\Test.sql").execute()
Is this right way to fire a queries in mysql?
I tried but its not working, I'm getting the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SOURCE C:\New.sql'"
Can someone help me figure out where I've gone wrong?