有关CONVERT,Split功能的存储过程的提示

时间:2012-12-15 02:42:03

标签: sql-server-2008 reporting-services dbo

我正在研究一个存储过程,其中包含我需要解密的以下变量,ResponseRange:

**@ResponseRange VARCHAR(64) = null,**

然后我们有:

IF (@ResponseRange is not null)
BEGIN
    INSERT 
    INTO #tempLK_ResponseStatuses
    SELECT CONVERT(INT, val) FROM dbo.Split(@ResponseRange, ',')    
END

IF (@ClientResponseRange is not null)
BEGIN
    INSERT 
    INTO #tempClientLK_ResponseStatuses
    SELECT CONVERT(INT, val) FROM dbo.Split(@ClientResponseRange, ',')  
END

发生了什么
SELECT CONVERT(INT, val) FROM dbo.Split(....)

我相信以上所有内容都对应于网页CS文件中的代码,其中包含以下示例:

new ResponseGroup() {
        ID = (int) ResponseStatusGroups.Completes,
        Code = 1,
        Label = "Completes",
        ResponseCodes = null,
        ClientResponseCodes = "10,11,12,13,14,15,16,17,18,19"
    },
    new ResponseGroup() {
        ID = (int) ResponseStatusGroups.OverQuota,
        Code = 2,
        Label = "Over Quota",
        ResponseCodes = "40,41,42,43,44,45,46,47,48,49",
        ClientResponseCodes = "40,41,42,43,44,45,46,47,48,49"

0 个答案:

没有答案