原帖地址:http://community.csdn.net/Expert/topic/3428/3428792.xml?temp=.6476251
--示例数据create table 表(ID int,NUM int)insert 表 select 1,2union all select 2,3union all select 3,2union all select 4,2union all select 5,12union all select 6,2union all select 7,1union all select 8,5union all select 9,1go
/*--问题说明:
输入分组参数,比如输入 "3,6" ,实现按 ID<=3,3<ID<=6,ID>6 分组查询输入分组参数,比如输入 "2,5,8" ,实现按 ID<=2,2<ID<=5,5<ID<=8,ID>8 分组查询--*/
--查......
阅读全文