probably an obvious question but Oracle Technet is not being friendly with my search terms on this. I want create a table and have a char column have a specific format. For example, a check constraint that would make sure the inserted SSN string is in the format “###-##-####” including the dashes. How do I specify this check?
probably an obvious question but Oracle Technet is not being friendly with my search
Share
It is generally not a very good idea to store the data in a specific format. Formatting is just bells and whistles and different situations may need different formats. Add localization to this and it becomes more obvious that this is not be a great idea.
You would want to format after retrieving the data. This can be done by Format Models.