原帖地址:http://community.csdn.net/Expert/topic/3230/3230422.xml?temp=.7884485
有这样的数据
字段1 字段2 2,4,23 3,6,345 23,56,4 3,3,67取数据的是查询 字段1中 条件是 4 那么在字段2 在取的是6与 67结果如下============4 64 67
-------------------------------------------------------------------------------
--处理示例
--测试数据create table tb(字段1 varchar(10),字段2 varchar(10))insert tb select '2,4,23' ,'3,6,345'union all select '23,56,4','3,3,67'go
--写个自定义函数来处理crea......
阅读全文