mysql 函数 select SUBSTRING_INDEX(vPART_ID, '/', 1)

select * from lackgoodsapplybillbase a inner join lackgoodsapplybillinfo b on a.`vLACKGOODSAPPLY_ID`=b.`vLACKGOODSAPPLY_ID` where b.`vPART_ID` not in (select  SUBSTRING_INDEX(vPART_ID, '/', 1) from materbaseinfo)  order by a.dOPERATE_DATE DESC
 
posted @ 2008-06-06 09:44  大树2  阅读(595)  评论(0编辑  收藏  举报