我在从SQL Server获取列时遇到问题.
DB有一个类型的列timestamp,我试图在Java中设置值,但我收到以下消息错误消息:
com.microsoft.sqlserver.jdbc.SQLServerException:the conversion type timestamp to TIMESTAMP is not compatible.
我的Java代码是:
dtoOperacion.setExtractionDate(rs.getTimestamp(7));
Run Code Online (Sandbox Code Playgroud)
该属性extractionDate是类型java.sql.Timestamp.
我可以使用JDBC Sql Server指定的类型吗?