L
Lawrence
Hi
I want to use prepared statements to execute SQL commands, I
understand how they work and have this basic code so far:
pstmtU = con.prepareStatement("INSERT INTO ?(?) Values(?)");
However as this will be used throughout different tables, there may be
more or less parameters in the Values() and also be of different types
(String, Integer etc) How can I get around this without creating lots
of prepared statements with varying amount of parameters?
Ideally there would be a way to use a statement within a statement,
but im not sure if this is possible.
Many thanks
Lawrence
I want to use prepared statements to execute SQL commands, I
understand how they work and have this basic code so far:
pstmtU = con.prepareStatement("INSERT INTO ?(?) Values(?)");
However as this will be used throughout different tables, there may be
more or less parameters in the Values() and also be of different types
(String, Integer etc) How can I get around this without creating lots
of prepared statements with varying amount of parameters?
Ideally there would be a way to use a statement within a statement,
but im not sure if this is possible.
Many thanks
Lawrence