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.
我在访问数据库中有一个自动编号(随机数)字段。现在我想将我从用户那里得到的输入与使用 JDBC 的自动编号字段进行比较。我应该使用哪种数据类型进行比较?
Access database have Number date type. You should use that.
Number
In JDBC, in PreparedStatement query parameter you have to use setInt
PreparedStatement
setInt