【发布时间】:2009-11-03 11:17:24
【问题描述】:
我有两个来自 v$sqlarea 的查询。例如
查询1:select * from employee emp where emp.eid = 5
查询 2:select * from employee v where v.eid = 15
两者在结构上完全相同。但是每次都会单独编译..
我需要匹配仅因别名或绑定变量而异的此类查询。
oracle 中的内置函数utl_match.jaro_winkler_similarity() 提供了一个非常好的字符串匹配算法。但是没有提供 sql 透视匹配。有没有其他解决办法?
【问题讨论】:
标签: sql algorithm oracle match