D
DECLARE @Str VARCHAR(32),@A1 VARCHAR(10),@A2 VARCHAR(10),@A3 VARCHAR(10),@A4 VARCHAR(10) ,@A5 VARCHAR(10),@A6 VARCHAR(10),@A7 VARCHAR(10),@A8 VARCHAR(10),@A9 VARCHAR(10),@A10 VARCHAR(10) ,@A11 VARCHAR(10); SET @Str = 'A1|A2|A3|A4|A5|A6|A7|A8|A9|A10|A11'; 怎么样把@Str 字符串变成下面的结果。 结果如下: @A1 = A1; @A2 = A2; @A3 = A3; @A4 = A4; @A5 = A5; @A6 = A6; @A7 = A7; @A8 = A8; @A9 = A9; @A10 = A10; @A11 = A11;
http://www.cnblogs.com/QLJ1314/p/3325759.html 希望能帮助你吧
sql语句应该有字符串操做函数吧