Add check for UPDATE
1. UPDATE must have WHERE condition.
2. UPDATE can not be SET c1=1 AND c2=2 which will lead to unpredictable
results.