开发者

retrieving timestamp record from database

开发者 https://www.devze.com 2023-01-03 15:22 出处:网络
h开发者_如何转开发ow to access timestamp object in resultset. i use this code String displayzone=Rs.getTimestamp(\"TIME_ZONE\").toString();

h开发者_如何转开发ow to access timestamp object in resultset. i use this code

String displayzone  =Rs.getTimestamp("TIME_ZONE").toString();

it will be error....


You should check that the contents of the field TIME_ZONE are truly a timestamp. Perhaps the field is not defined as a timestamp. Perhaps it contains a representation of the time zone, such as PDT or IST, or even -0700 In such a case, the call to getTimestamp() will recognize that it is not a timestamp and will throw an error.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号