Code Inspection: Delete or update statement without where clauses
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports usages of DELETE or UPDATE statements without WHERE clauses.
Without WHERE clauses, DELETE drops all the data from the table, and UPDATE overwrites values for all the table rows.
Example (MySQL):
CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);
update t1 set a = 'Smith';
delete from t1;
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.