Can somebody please help me to understand the difference between these two scenarios
List<String> contactIdList = new List<String>{'00328000003Jms2',
'00328000003JbfQ', '00328000003HdMp', '00328000003HcRS'};
1 - Using IN operator List<Contact> contactList = [SELECT Id, Name From Contact WHERE ID IN :contactIdList];
2 - Using = operator List<Contact> contactList = [SELECT Id, Name From Contact WHERE ID = :contactIdList];
Both the queries give me the same result. Then what is the difference between these two ?
Which operator I should use and how does it affects the non-selective criteria ?
Any other information regarding the same would be much appriciated.
Thanks.