【发布时间】:2021-07-10 00:42:28
【问题描述】:
我有一个非常奇怪的情况,数字很大。 查询
select edge_id from edges where rownum = 1
返回 2.57775300147101E21
可以建议查询
select * from edges where edge_id = 2.57775300147101E21
或
select * from edges where edge_id = 2577753001471010000000
将返回一行。
但它返回“未选择行”...
让我们继续:
select to_char(edge_id) from edges where rownum = 1
返回 2577753001471010316917
这对我来说是意外的行为。 这种情况下如何查询表?
【问题讨论】:
标签: oracle comparison precision point floating