Question : Error message — ORA-00901: invalid CREATE command
I am using Oracle8i. (126.96.36.199.0)
When I use the following query — CREATE DOMAIN country_code (2) NOT NULL;
I get the error message — ORA-00901: invalid CREATE command
There is nothing wrong with the SQL query. Why is Oracle not recognizing the reserved word DOMAIN?
Solution: Error message — ORA-00901: invalid CREATE command
CREATE DOMAIN is indeed part of the SQL’92 standard but Oracle does not implement this specific functionality.
However, as mudumbe’s said, domain can be emulated with types.