soql in code example
Example 1: mysql in
SELECT
column1,column2,...
FROM
table_name
WHERE
column1 IN ('value1','value2',...);
Example 2: sql in
Used alongside a WHERE clause as a shorthand for multiple OR conditions.
So instead of:
SELECT * FROM users
WHERE country = 'USA' OR country = 'United Kingdom' OR
country = 'Russia' OR country = 'Australia';
You can use:
SELECT * FROM users
WHERE country IN ('USA', 'United Kingdom', 'Russia',
'Australia');