Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
rs.getboolean メソッドを使用して tinyint(0/1) の値を SQL から取得することは可能ですか? このような:
while (rs.next()) { boolean noUse= rs.getBoolean(1); }
これがうまくいかない場合は、次のようにする必要があると思います。
while (rs.next()) { boolean noUse= rs.getByte(1)==1; }
助けてくれてありがとう。