SQL:select ID,GoodsBriefIntroduction,GoodsGive,GoodsDeduct,GoodsName from [lodo_Goods] where (GoodsLookOverAuthority='All' Or (GoodsLookOverAuthority='nouser' And 0=0) Or (GoodsLookOverAuthority='AllUser' And 0<>0) Or ( GoodsLookOverAuthority<>'All' And GoodsLookOverAuthority<>'AllUser' And GoodsLookOverAuthority<>'nouser' And (Not GoodsLookOverAuthority like '%,0,%') And (0<>0))) and goodsType<>'|0|0|0|0|0|' and Issueno=1 and (AutomaticLowerShelfno=0 or ( AutomaticLowerShelfno=1 and ExpiryDate>=#2024-11-10# ) ) and (GoodsName like '%é–¸æ¬ç§´é˜æ»ˆå?%' or Introduce like '%é–¸æ¬ç§´é˜æ»ˆå?%' or GoodsBriefIntroduction like '%é–¸æ¬ç§´é˜æ»ˆå?%' or GoodsCode like '%é–¸æ¬ç§´é˜æ»ˆå?%') Order By Preface ,ID Desc
Sqlڴ
ѯݵʱִIJѯǷȷ