How do I run a MySQL Query in Java?
I saw a few examples online, but they looked strenuous. One query required 30+ lines of code, excluding connecting to the host and such.
Is there not a short, simple, easy way to run a query/fetch results from an SQL database in Java like in PHP?