程序
    exec  heduling_date_select 
    '   Name like @%a%@ or phone like @%a%@ or Cus_code like @%a%@ 
or objjc like @%a%@ or Doctor like @%a%@'

存储过程
set @where = replace(@where,'@',char(39))

或者 用两个单引号代替一个
exec heduling_date_select ' Name like ''%a%'' or phone like ''%a%'' or Cus_code like ''%a%'' or objjc like ''%a%'' or Doctor like ''%a%'''

 

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案