Quantcast
Channel: SCN : All Content - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 757

Which one has better performance: like, charindex, patindex

$
0
0

in a query where condition clause. to check if string a contain b, I have a few options with ASE 12.5.4:

 

a like '%b%'

charindex(b,a)>0

patindex('%b%', a)>0

 

 

which one has better performance?


Viewing all articles
Browse latest Browse all 757

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>