I have a field in my database that I don't want to exceed 100. Is there something in a query I can add to make sure it doesn't?
I usually end up doing this:
UPDATE table SET field = field + $x UPDATE table SET field = 100 WHERE field > 100 Does anything like this exist?