导读:
insert into aaa values(1,t_air(1,'23sdf'));
4 查询classPlace
select a.id ,a.persion.id,a.person.name from aaa a;
本文转自
http://airlgc.blog.51cto.com/161810/26155
1 首先创建一个数据类型
create type t_air as object(id int ,name varchar(20));
2 创建表
create table aaa(
id int ,person t_air);
3 插入数据
create type t_air as object(id int ,name varchar(20));
2 创建表
create table aaa(
id int ,person t_air);
3 插入数据
insert into aaa values(1,t_air(1,'23sdf'));
4 查询classPlace
select a.id ,a.persion.id,a.person.name from aaa a;
本文转自
http://airlgc.blog.51cto.com/161810/26155
本文介绍了一种使用SQL创建自定义对象类型的方法,并通过实例演示了如何定义对象类型、创建包含该对象类型的表以及进行数据的增删查改操作。
1894

被折叠的 条评论
为什么被折叠?



