现在有一个订单明细表,现在该表里面的ProductType字段保存的是商品类型的值,可能保存多个值,其中用“.”符号分隔开,现在我想做一个“产品类型”查询,就是需要获取ProductType字段里面包含的某些商品,1000、1001等都是代表一种商品。问题来了,怎么用sql查询?谢谢啦。

------解决思路----------------------
with orderdetail(producttype) as
(select 1001 union all
select 1000 union all
select 1001.1002 union all
select 1003.1001)
select * from orderdetail where charindex('.1001.','.'+cast(producttype as varchar(50))+'.')>0