where  fprop01 like "%'+@customerr+ '%"对吗 怎么个写法 

解决方案 »

  1.   

    where  fprop01 like '%' + +@customerr + '%'
      

  2.   

    动态查询
    exec(select * from tb where fprop01 like '%+@customerr+ %')
      

  3.   

    exec(select * from tb where fprop01 like '%'++@customerr++'%')
      

  4.   


    where  fprop01 like '%'+@customerr+'%'
      

  5.   

    exec('select * from tb where fprop01 like %'+@customerr+'%')
      

  6.   

    exec('select * from tb where fprop01 like %+'+@customerr+'+%')