Skip to content
Advertisement

Tag: bufferedreader

How to read sql query from a txt-file in Java

I am having some some class that is sending queries to data base. Everything was working fine when the query was in the code, but as it’s pretty big, I decided to put it in a file and to read it with buffered reader, but it’s not working, I always get this: java.sql.SQLException: ORA-00900: invalid SQL statement Here is my

Advertisement