Skip to content

By default, field values in the WHERE clause are case sensitive. In v14.0+, use the CASEINSENSITIVE() function in the WHERE clause to bypass field case sensitivity.

SELECT {field} FROM {query target} WHERE CASEINSENSITIVE({field}) {operator} {value}

The {field} parameter must be the name of an object field of type String.

The following are examples of queries using CASEINSENSITIVE().

The following example returns Product records where the Name field value is ‘cholecap’ in any letter case:

SELECT name__v FROM product__v WHERE CASEINSENSITIVE(name__v) = 'cholecap'
{ "responseStatus": "SUCCESS", "responseDetails": { "pagesize": 1000, "pageoffset": 0, "size": 1, "total": 1 }, "data": [ { "name__v": "CholeCap" } ] }