4 ms·
Hate to sound pedantic, but the Java example is a little off. java.sql.PreparedStatements have their parameters start at index 1, not 0. So the first "?" is p
by umjames 17y ago
Hate to sound pedantic, but the Java example is a little off. java.sql.PreparedStatements have their parameters start at index 1, not 0. So the first "?" is parameter 1 and the second is parameter 2.
It's one of the few places in Java where indexing starts at 1 instead of 0.
- tetha 17y ago... which probably is the reason he got it wrong. Consistency is a blessing.