select * from Product1 where StockType=N'进仓'and product_type='RS365SH22619A' 

解决方案 »

  1.   

    select * from Product1 where StockType=N'进仓' and product_type='RS365SH22619A'  红色部分多加个空格看看。。如果再没数据,看查询条件是否有问题。。
      

  2.   

    select * from Product1
    where (StockType<>N'进仓' or product_type<>'RS365SH22619A')  
      

  3.   

       一样的显示不了.加上了and product_type='RS365SH22619A'条件就不能显示数据`~~~
      

  4.   

    有'号,and倒没事,多半是数据有问题
      

  5.   

    select * from Product1 where StockType='进仓' and product_type='RS365SH22619A'  
      

  6.   

    Try:
    把product_type='RS365SH22619A'
    改成product_type like 'RS365SH22619A%'
      

  7.   

       like查询我也试过,不可以`~~不晓得是什么原因了~~~~
      

  8.   

    不现实相应的数据,是不是数据库里面根本没有关于
    product_type='RS365SH22619A'  
    的数据那?
    先调查一下吧
      

  9.   


    语法没有错误,库选择对了吗?可能满足条件的为0条可能设置了:set rowcount 0
      

  10.   


    查询时用like试试吧。可能数据中存在换行符或者空格等。 。。select * from Product1 where StockType like '%进仓%' and product_type like '%RS365SH22619A%'