on-internet
← Community

Explanation of % in SQL

Stack Overflow ·

Could someone explain the difference between % in SQL? I understand that % is a wildcard that allows you to query results with LIKE results, i.e. a% for words starting with a, but I am confused why the wildcard can be used as % 2 = 0 to query for even numbers? I saw an explanation that said % can be used as divide but I thought / was divide.

Comments

Sign in or sign up to comment and upvote.

No comments yet.