注册 登录
编程论坛 Oracle论坛

[求助]%type什么意思

冰的热度 发布于 2007-11-12 22:38, 2498 次点击
declare
x student.id%type;

其中,%type是什么意思?

declare
cursor my_cur is
select num from xs;
my_num my_cur%rowtype;

其中的%rowtype;是什么意思?
2 回复
#2
cander562007-11-13 00:17
x student.id%type;
就是指x的类型就是student的id这列的数据类型

varE myCur%rowType;不知道是不是指返回mycur的行数据(mycur)是游标
#3
冰的热度2007-11-14 13:30
哦,我晃然大悟,谢谢!
1