select 
instname=(select stname from tbstore where tbsale.instno=tbstort.stno),
outstname=(select stname from tbstore where tbsale.outstno=tbstort.stno)
from tasale

解决方案 »

  1.   

    Oracle的语法:
    select b.name instname, c.name outstname from tbsale a, tbstore b, tbstore c where a.instno=b.no and a.outstno=c.no
      

  2.   

    用一個sql語句,
    比較麻煩
    學習
      

  3.   

    在建一个表,create table tbsalemx as select * from tbsale 
    更新一下表,update table tasalemx set instno="仓库1" where instno="0001"
    其他也一样
      

  4.   

    一种方法:
        打开tbsale表时,增加两个LOOKUP字段获取其名称。。
      

  5.   

    to zfmich() 
    详细一点,OK?
      

  6.   

    select a.stname,b.stname from tbsale,tbstore a,tbstore b where tbsale.instno=a.stNo and tbsale.Outstno=b.stno