• Ashok Reddy 61
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Background : I need access account records in the apex class where name contains %

For example, the query should return below accounts
abcd10%
cdcd40%abcd
10%volume

When i execute below query i am getting results in the workbench
select id,name from Account where Name LIKE '%\%%'


the same query If I execute in Anonymous window/apex execute getting no results

 
Background : I need access account records in the apex class where name contains %

For example, the query should return below accounts
abcd10%
cdcd40%abcd
10%volume

When i execute below query i am getting results in the workbench
select id,name from Account where Name LIKE '%\%%'


the same query If I execute in Anonymous window/apex execute getting no results