Like operator in SOQL query in JAVA and C# March 14, 2012June 9, 2022InfallibleTechie Admin Example: String sql = ‘SELECT Name,Id FROM Account WHERE Name Like ‘%’ + acctName + ‘%”; Here ‘acctName’ is a variable.