I have created this view in DB2 LUW:
CREATE VIEW SCHEMA.TYPE(TYPEID, TYPENAME) AS
SELECT TYPEID, TYPENAME
FROM TABLE(VALUES(0,'A'),
(1,'B'),
(2,'C'),
(3,'D'),
(4,'E'),
(5,'F')) T(TYPEID, TYPENAME)
I’d like to move this same view to an Oracle database (10g).
I found that TABLE exists in Oracle, but the VALUES function does not.
Would you have an idea how to transform the view?
Thank you
The only thing I came up with is: