具體代碼為:
select a.gbspo_no,
from po_header a,
po_deliveryseq b,
po_deliveryseq_color c,
po_deliveryseq_colorszie d,
po_item_style e,
where a.gbspo_no=b.gbspo_no and
a.lastmodif_date=b.lastmodif_date and
a.gbspo_no=c.gbspo_no and
a.lastmodif_date=c.lastmodif_date and
a.gbspo_no=d.gbspo_no and
a.lastmodif_date=d.lastmodif_date and
a.gbspo_no=e.gbspo_no and
a.lastmodif_date=e.lastmodif_date and
b.deliverysequenceno=c.deliverysequenceno and
b.deliverysequenceno=d.deliverysequenceno and
c.colorno=d.colorno
group by a.gbspo_no;
當然,where條件中我寫的是各個表中的主鍵之間的連接。
select a.gbspo_no,
from po_header a,
po_deliveryseq b,
po_deliveryseq_color c,
po_deliveryseq_colorszie d,
po_item_style e,
where a.gbspo_no=b.gbspo_no and
a.lastmodif_date=b.lastmodif_date and
a.gbspo_no=c.gbspo_no and
a.lastmodif_date=c.lastmodif_date and
a.gbspo_no=d.gbspo_no and
a.lastmodif_date=d.lastmodif_date and
a.gbspo_no=e.gbspo_no and
a.lastmodif_date=e.lastmodif_date and
b.deliverysequenceno=c.deliverysequenceno and
b.deliverysequenceno=d.deliverysequenceno and
c.colorno=d.colorno
group by a.gbspo_no;
當然,where條件中我寫的是各個表中的主鍵之間的連接。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货