Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to replace like with instr function in Oracle

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces how Oracle uses instr function to replace like, the content is very detailed, interested friends can refer to it, I hope it can help you.

Using instr function of Oracle to cooperate with index to improve efficiency of fuzzy query

Generally speaking, in Oracle database, we will use the following two ways to perform fuzzy queries on the name field of tb table:

1.select * from tb where name like '%XX%';

2.select * from tb where instr(name,'XX')>0;

-----------------------------------------------------------------------------------------------------------------------------------------------------

instr(title,'Oracle')>0 Equivalent to title like '%Oracle%'

instr(title,'Oracle')=0 equates to title not like '%Oracle%'

About Oracle how to use instr function instead of like to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report