您的位置:首页 > 数据库 > Oracle

oracle for循环查找结果

2016-07-27 20:19 621 查看
-- Call the procedure
begin
for v_rlt in (select * from oqc_inspection_sample s where s.state='A' AND S.status='已检验' and s.is_v2='1' ) loop
dbms_output.put_line('v_rlt = '||v_rlt.ID||v_rlt.inspection_no);
end loop;
dbms_output.put_line('FOR循环已经结束!');
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: