SOQL queries support Apex variable binding. You can use an Apex variable and filter SOQL records against the value of that variable.
tring strName = ‘John Snow’;
List<Position__c> positionList = [SELECT Name
FROM Position__c WHERE Name =: strName];
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.