Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl DBI query of MS SQL with LIKE

by Bod (Parson)
on May 29, 2023 at 18:28 UTC ( [id://11152475]=note: print w/replies, xml ) Need Help??


in reply to Perl DBI query of MS SQL with LIKE

I think I would start by broadening the LIKE match...

$select_TransactionCode_handle->execute( '%' . $transactionCodeQuery . + '% );

I would also check exactly what $transactionCodeQuery contains.

print "->$transactionCodeQuery<-";

Then try the query manually at the database to ensure it is not something bizarre in the data that is giving spurious results.

I don't use SQL Server, but for MySQL and MariaDB the syntax you are using is correct.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found