当前位置:Gxlcms > 数据库问题 > oracle 中模糊查询对like的代替insrt()函数 可以做到效率节约一倍以上

oracle 中模糊查询对like的代替insrt()函数 可以做到效率节约一倍以上

时间:2021-07-01 10:21:17 帮助过:30人阅读

distinct(a.deptname) from sys_depart a, gzdb_task b where instr(a.deptname,b.acceptor ) > 0; select distinct(a.deptname) from sys_depart a, gzdb_task b where a.deptname like %|| b.acceptor||%;

返回结果相同所用时间差异非常大(多次试验):

第一条sql:技术分享

第二条sql:技术分享

 

oracle 中模糊查询对like的代替insrt()函数 可以做到效率节约一倍以上

标签:where   ges   返回   http   第一条   试验   like   多次   color   

人气教程排行