I always thought that it's a very strange default in SQL: if you don't specify which rows you want, the operation affects everything.
switchport trunk allowed vlan add $vlan
But if you by accident omit add keyword you would replace all interface vlans with $vlan switchport trunk allowed vlan $vlanIf it's very mission critical, even an entire seperate cable infrastructure for OOB is not uncommon.
UPDATE t SET foo='bar' WHERE baz LIKE '$INPUT';
This will do no changes when $INPUT is empty, and only with $INPUT set to '%' will it update every record.