Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
aexaey
· 8y ago · 0 comments
Percent, rather than asterisk.
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.
Comments
No comments yet.
Better HN