Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: HANA db case sensitivity with SQL text searches

$
0
0

Hi Patrick,

 

In order to avoid case sensitive issues, no need of changing an settings.

Just proper sql is enough to solve this problem.

 

Here is my work around for your situation.

First i modified the table (EMPLOYEE) to include names in a column "ENAME" with name as JOHN.

SO i have four employees with the same name but with different cases like all lower case, all upper case, mixed case as shown below

             Data1.JPG

Then the SQL required to get the solution is

 

select "SRK"."EMPLOYEE"."EID","SRK"."EMPLOYEE"."ENAME" from "SRK"."EMPLOYEE"

WHERE  contains ("SRK"."EMPLOYEE"."ENAME", 'john')

ORDER BY "SRK"."EMPLOYEE"."EID";

         Data2.JPG

Irrespective of the search string case you give (JOHN, john, JOhn, etc), you will always get it.

 

Regards

Raj Kumar


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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