oracle函数中游标的使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hoho_12/article/details/83304912
function test(in_type in varchar2) return varchar2 is
		cursor v_rules is
			select s.id,s.name,s.no
			from student s;
		v_rule v_rules%rowtype;
		v_id varchar2(16);
		v_name varchar2(4000);
	begin
		for v_rule in v_rules loop
			v_id := v_rule.id;
			v_name := v_rule.name;
		end loop;	
	end;

猜你喜欢

转载自blog.csdn.net/hoho_12/article/details/83304912
今日推荐