Oracle Cast and MULTISET avaliable in POSTGRES
问题 I have been working on a query to generate xml from the oracle database database where "column" is a type CREATE OR REPLACE TYPE "column" AS OBJECT ("coulmnname" VARCHAR2 (30), "datatype" VARCHAR2 (30)) and col_list_t is of type CREATE OR REPLACE TYPE col_list_t AS TABLE OF "column" and SELECT CAST ( MULTISET ( SELECT "column" (B.COLUMN_NAME, B.DATA_TYPE) FROM all_tab_columns b, all_tables c ,all_tables a WHERE b.TABLE_NAME = a.TABLE_NAME AND b.table_name = c.TABLE_NAME AND B.OWNER = C.OWNER