I search the Internet, but I canโt understand what kind of life it is:
Can I make a MySQL table column ONLY accept a given number of characters (e.g. 5 numbers ONLY, not 4 numbers or 6 numbers)? I read the MySQL documentation for some different data types, but havenโt found anything yet.
In a pretty bad move, I canโt do the reg-ex check in PHP, which is easy now, and would like to make a simple exit by forcing this check in the database itself. Thanks in advance!
source share