selectively update prepared statement

Posted by user309584 on Stack Overflow See other posts from Stack Overflow or by user309584
Published on 2010-04-05T22:50:45Z Indexed on 2010/04/05 22:53 UTC
Read the original article Hit count: 108

Filed under:

for an prepared statement

update table t set a = ? ,b = ? where i = ?

column a to stay column a ie. a=a and only need to setInt for b and visa versa, without needing another statement. Is there a concise way of doing this?

© Stack Overflow or respective owner

Related posts about jdbc