Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql Oracle中的多个嵌套表_Sql_Oracle - Fatal编程技术网

Sql Oracle中的多个嵌套表

Sql Oracle中的多个嵌套表,sql,oracle,Sql,Oracle,是否可以创建一个包含多个嵌套表的表,例如本例 create or replace type t_products is object( name varchar(20), price float(4,2), drinks col_drinks, foods col_foods ); / create table products of t_products nested table drinks, foods store as drink, food; 可以,

是否可以创建一个包含多个嵌套表的表,例如本例

create or replace type t_products is object(
    name varchar(20),
    price float(4,2),
    drinks col_drinks,
    foods col_foods
);
/

create table products of t_products nested table drinks, foods store as drink, food;

可以,但需要单独的
嵌套表。。将其存储为…
子句:

create table products of t_products
    nested table drinks store as drink,
    nested table foods store as food;
另外,
float
不能有刻度,但无论如何都可以使用
number
;而
varchar
应该是
varchar2


谢谢!这是非常有用的。