【发布时间】:2013-02-10 10:34:35
【问题描述】:
我需要从下面的字符串中获取第三个子字符串是示例,使用 SQL Server 2008。
string1:-
('C20080703115333MCTTtettett','24','6101349328','Bundled Standard','4','2.00','Testing Insert for New SP',','PD2013021002584832540')
想要的结果:- 6101349328
string2:-
('C20080703115333MCTTetew','24','7101349328','Bundled Standard','4','2.00','Testing Insert for New SP',','PD2013021002584832540')
想要的结果:- 7101349328
string3:-
('C20080703115333MCTTteetew','24tt','8101349328','Bundled Standard','4','2.00','Testing Insert for New SP',','PD2013021002584832540')
想要的结果:- 8101349328
string4:-
('C20080703','24','111101349328','Bundled Standard','4','2.00','Testing Insert for New SP',','PD2013021002584832540')
想要的结果:- 111101349328
提前致谢。
【问题讨论】:
-
这看起来更像是获取第三列,而不是第三个子字符串...
标签: sql-server sql-server-2008 substring