Oracle SQL: select from table with nested table

后端 未结 1 1662
北荒
北荒 2021-01-12 03:41

I wonder how can i make select statement from table which have a typed column ? Type of this column is defined as:

create or replace TYPE \"MYCOL\" as table          


        
相关标签:
1条回答
  • 2021-01-12 04:37

    Try it like this:

    select t."ID", tt.myid, tt.myname 
    from "T_TABLE" t, table(t."NAME") tt;
    

    Here is a sqlfiddle demo

    0 讨论(0)
提交回复
热议问题