Question : Error message — ORA-00901: invalid CREATE command
I am using Oracle8i. (220.127.116.11.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.