Pull: Difference between revisions

From Data Islands
(LIKE operator Replaced with ILIKE)
(LIKE operator description.)
Line 6: Line 6:
Please note:
Please note:


If we use LIKE operator in where clause then we are replacing to ILIKE as PostgreSQL understand ILIKE to make where condition as case in-sensitive, so for example, if we give the payload as:
If we wants to use query select statement with LIKE operator as case insenstive then we need to use ILIKE instead of LIKE operator as PostgreSQL understand ILIKE to make where condition as case in-sensitive, so for example, we need to give the payload as:




"{\"Query\": \"select * from customers where \\\"CompanyName\\\" like '%Ana%'\"}"
"{\"Query\": \"select * from customers where \\\"CompanyName\\\" ILIKE '%Ana%'\"}"
 
then internally (in backend side) it will replaced as below and then process:
 
"{\"Query\": \"select * from customers where \\\"CompanyName\\\" ilike '%Ana%'\"}"
 
 
In case if we already given ilike then it will not replaced.

Revision as of 06:21, 21 September 2022

Syntax

pull island destinationname "<whereclause>"


Please note:

If we wants to use query select statement with LIKE operator as case insenstive then we need to use ILIKE instead of LIKE operator as PostgreSQL understand ILIKE to make where condition as case in-sensitive, so for example, we need to give the payload as:


"{\"Query\": \"select * from customers where \\\"CompanyName\\\" ILIKE '%Ana%'\"}"