posted 13 years ago
If you want to use variables inside a sql statement you will have to use PreparedStatement s.
One example:
The ? can't be placed whereever you want. For example you can't create a table using a variable where its value should be the name of the new table.