日期:2014-05-17 浏览次数:20406 次
DECLARE @i TABLE (fnumber NVARCHAR(100))
INSERT INTO @i(fnumber)
SELECT 'aa.bb.cc'
UNION ALL
SELECT 'abc.a.c'
UNION ALL
SELECT 'ccccc.bac.ffffff'
SELECT PARSENAME(fnumber,3),PARSENAME(fnumber,2),PARSENAME(fnumber,1) FROM @i
/*
(无列名) (无列名) (无列名)
aa bb cc
abc a c
ccccc bac ffffff*/