次の行で作成された計算列があります。
alter table tbPedidos
add restricoes as (cast(case when restricaoLicenca = 1 or restricaoLote = 1 then 1 else 0 end as bit))
しかし、今度はこの列を次のように変更する必要があります。
alter table tbPedidos
alter column restricoes as (cast(case when restricaoLicenca = 1 or restricaoLote = 1 or restricaoValor = 1 then 1 else 0 end as bit))
しかし、それは機能していません。caseステートメントに別の条件を入力しようとしていますが、機能していません。
どうもありがとう!