In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In Oracle
You can use the instr function to determine whether a string contains a specified character.
Finds the specified character in a string and returns the position of the specified character found.
Syntax:
Instr (sourceString,destString,start,appearPosition)
Instr ('source string', 'target string', 'start position', 'occurrence number')
Where sourceString represents the source string
DestString represents the substring to find from the source string
Start represents the start of the search. This parameter is optional and defaults to 1.
AppearPosition represents the number of times you want to find the destString from the source character. This parameter is also optional. The default is 1.
If the value of start is negative, it means that the search is made from right to left, but the location data is still calculated from left to right.
The return value is the location of the string found.
For the instr function, we often use this: find the location of a specified substring from a string. For example:
SQL > select instr ('abcdefgh','de') position from dual
POSITION
-
four
D ranks fourth from 1, so return 4
SQL > select instr ('abcdefghbc','bc',3) position from dual
POSITION
-
nine
The third character is c from the third character, so the string after 3 looks for bc and returns 9.
-
Start with the first character and find the location of the second occurrence of the substring
SQL > select instr ('qinyinglianqin','qin', 1,2) position from dual
POSITION
-
twelve
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.