首页 > 数据库技术 > 详细

plsql cursor 函数

时间:2016-02-16 12:55:57      阅读:156      评论:0      收藏:0      [点我收藏+]

cursor 函数可以使表中嵌套另外一个表。

select pha.po_header_id, pha.segment1, cursor(select pla.line_num, pla.unit_price from po_lines_all pla where pha.po_header_id=pla.po_header_id),
cursor(select plla.shipment_num, plla.quantity_received from po_line_locations_all plla where pha.po_header_id=plla.po_header_id),
cursor(select segment1 from po_headers_all phaa where phaa.po_header_id=pha.po_header_id)
from po_headers_all pha

技术分享

plsql cursor 函数

原文:http://www.cnblogs.com/gary-bao/p/5192222.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!