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 函数

相关文章:

  • 2022-02-01
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案