Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

dynamic soql escape the single quote

 'SELECT payout__Account_Desc__c FROM payout__ImportStaging__c where payout__BD_Id__c = '' + String.escapeSingleQuotes(bdId) + '' AND payout__Processed_Flag__c <> '' + String.escapeSingleQuotes('Y') + ''');
 
PREVIOUS NEXT
Tagged: #dynamic #soql #escape #single #quote
ADD COMMENT
Topic
Name
9+1 =