New answers tagged java
0
Why would you want to use the DB to check for files ?
Just write a shell script (if using Linux) or bat script (Windows) to check for the files, and use cron or Windows task scheduler to run that script.
You can also create the INSERT query in the script (on Linux + MySQL that should be easy enough), and every time the files are checked, a new row should ...
1
Nevermind. I jumped the gun on posting here! When executing queries in java, I am not suppose to put the semi-colon at the end of the statement. I had tried not putting the semi-colon at the end and it ran without errors but I thought I had checked my database and saw that no table was created. I have now confirmed that dropping the semi-colon has worked!
Top 50 recent answers are included