在项目中使用Npoco时发现where in查询总是不能起作用。寻觅了许久终于找到解决方案,特此记录下:

Declare  @p Varchar(500)
Set @p='CoreRole,CorePassword,CoreOnlineUser'
SELECT * FROM [Menus] 
where charindex(','+ModuleName+',',','+@p+',')>0

 

相关文章:

  • 2021-11-13
  • 2021-08-17
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-07-20
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案