Check out example codes for "sqlite3.OperationalError: near "AND": syntax error python". It will help you in understanding the concepts better.

Code Example 1

In [156]: sql
Out[156]: "update foo set is_processed=1 where bar='don't look now'"

Learn ReactJs, React Native from akashmittal.com