Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Perl DBI query of MS SQL with LIKE

by Bod (Parson)
on May 30, 2023 at 17:24 UTC ( [id://11152528]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl DBI query of MS SQL with LIKE
in thread Perl DBI query of MS SQL with LIKE

Using LIKE with only a trailing % is usually slower than using SUBSTR

I cannot speak for SQL Server but with MariaDB LIKE is optimised to use indexes as long as the first character is not a wildcard - '%' or '_'

See documentation

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11152528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found