if not in query python example
Example 1: mysql not in list
#filter in MySQL:
WHERE id_field not in ('817','803','495')
Example 2: is not in python
li = [1,2,'a','b']
if 'hello' not in li:
print('hello is not in the list')
#filter in MySQL:
WHERE id_field not in ('817','803','495')
li = [1,2,'a','b']
if 'hello' not in li:
print('hello is not in the list')