I want to run a query SELECT ... LIKEin case sensitive SQLite. But I want this one request to be case sensitive, and nothing more.
I know that there is
PRAGMA case_sensitive_like = boolean;
But this is like changing all LIKE requests.
How can I enable case-sensitive LIKE for a single request?
Examples: I want the query "FuN" to match "blah FuN blah", but not "foo fun bar".
(This works under PHP using PDO)
I could switch this and then turn it off after the request, but I can worry about the consequences that may have (efficiency, etc.). Is there any harm?
I do not have write access to the database.
(This is under Windows Server 2008)
SELECT id, summary, status FROM Tickets WHERE summary COLLATE BINARY LIKE '%OPS%';, SELECT, , .