1
|
SELECT
*
FROM
sys_User
WHERE
charindex(
','
+rtrim(RoleID) +
','
,@RoleID)>0
|
1
|
exec
(
"SELECT * FROM sys_User WHERE RoleID in ('"
+ @RoleID +
"')"
)
|
1
|
SELECT
*
FROM
sys_User
WHERE
RoleID
in
(
select
*
from
dbo.split(@RoleID,
','
))
|