in reply to Inline Java not working

I don't get why you even want to do this with Java at all.

The code is just dropping a table if it exists but methinks most modern databases have a nice feature whereas you can say,

DROP table xzy IF EXISTS ...

I don't know if your db has such a feature but I would check. This makes it so you can avoid all of the error handling stuff.

Next, the code just creates a table. Pardon me for stating the obvious but this reads a lot like, "hey, somebody said I had to use Perl but since I hate to learn new stuff I'm just gonna wrap my Java stuff..."

If so that is sad. Perl has much more to offer you in exchange for minimal effort.

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: Inline Java not working
by mallett76 (Beadle) on Jan 03, 2024 at 17:42 UTC

    This code isn't my end goal. This code was only being used as a test script. If successful, I was going to move to more complex scripts.