In Oracle db we have a table with varchar2 type of column (for example USERNAME). How can I set a exact (or at least minimum) length for this column? So that all usernames inserted into this table can be only 10 (or have to be at least 10) characters long.
Share
You could use a check constraint:
Or something similar. I’m not sure how performant this is, though.