---------下面是SQL语句---------- create index IESK_STOCKTRANSITEM_Name on IESK_STOCKTRANSITEM(resname); create index iesk_stocktransfer_billNo on iesk_stocktransfer(billNo,resourceID); create index IESK_STOCKTRANSITEM_Name2 on IESK_STOCKTRANSITEM(billId ,resid);
select c.resid,c.resCode,c.resName ,m.billNo,m.resourceID,m.resourceName from (select c.resid,c.resCode,c.resName, c.billId from IESK_STOCKTRANSITEM c where c.resName='a') c, iesk_stocktransfer m where m.billNo = c.billId and m.resourceID = c.resid ;