sql server
drop table #a
create table #a (menuid varchar (20), aaa varchar (20))
insert into #a
select '10', 'aa'
union
select '20', 'bb'
union
select '30', 'bb'
union
select '11', 'bb'
union
select '210', 'bb'
SELECT * FROM #a
where '10, 11, 13, 12, 40, 47, 48, 49, 90, 92, 91, 94, 95, 96, 30, 31, 33, 34, 35, 24, 20, 21'
like '%' + menuid + ',%'
order by menuid
-
10aa
11bb
20bb
30bb
--lz what are you going to do? |