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.
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.
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