Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into sma

1 resposta
S

Ola pessoas estou tento o seguinte problema em uma procedure quando tento incrementar mais um item da isso

Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries.

1 Resposta

S

ex:

SET @CartSub = SUBSTRING(@P_Cart, 0,5)
	if(@CartSub = '0580') begin
		SET @Plano = 'c/c parcial';
	end
	else if (@CartSub = '0595') begin
        SET @Plano = 'c/c total';
    end
    else if (@CartSub = '0628') begin
        SET @Plano = 'c/c parcial';
    end
    else if (@CartSub = '0594') begin
        SET @Plano = 'c/c parcial';
    end
 tenho pelo menos mais uns 50 else if
Criado 12 de março de 2012
Ultima resposta 17 de mar. de 2012
Respostas 1
Participantes 1