Question : Error message — ORA-00901: invalid CREATE command
Hi,
I am using Oracle8i. (8.1.7.2.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?
Thanks.
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.
VC