我有串象下面这样:在字符串查找字符串包含SQL Server中的逗号
string s; //reading from front end like s='color'
string s1; //reading from front end like s1='prototype'
string str=s+","+s1;
所以str="color,prototype"
和字符串str
可以包含像str="color,prototype,niranjan,cloud";
许多字符串我想将其发送到数据库,并将其按照如下行插入到表中:
id value
1 color
2 prototye
3 niranjan
4 cloud
因此,一个存储过程或查询来查找上述要求。
你为什么要串联成一个单一的字符串?为什么不创建一个需要多个参数的proc? – 2012-08-03 22:27:06