Data type length enforcement

elgeo
Valued Contributor II

Hello. Is there a way to enforce the length of a column in SQL? For example that a column has to be exactly 18 characters? Thank you!