日期:2014-05-17 浏览次数:20530 次
----------------------------------------------------------------
-- Author :DBA_Huangzj(發糞塗牆)
-- Date :2014-01-24 14:57:11
-- Version:
-- Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)
-- Dec 28 2012 20:23:12
-- Copyright (c) Microsoft Corporation
-- Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
--
----------------------------------------------------------------
--> 测试数据:[itemTbl]
if object_id('[itemTbl]') is not null drop table [itemTbl]
go
create table [itemTbl]([f_number] varchar(9))
insert [itemTbl]
select 'CI1.01.01' union all
select 'CI1.01.02' union all
select 'CI1.01.03' union all
select 'CI1.01' union all
select 'CI1.02.01' union all
select 'CI1.02.02' union all
select 'CI1.02.03' union all
select 'CI1.02' union all
select 'CI1' union all
select 'CI2.01.01' union all
select 'CI2.01.02' union all
select 'CI2.01.03' union all
select 'CI2.01' union all
select 'CI2.02.01' union all
select 'CI2.02.02' union all
select 'CI2.02.03' union all
select 'CI2.02'