篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp CASE Tquery相关的知识,希望对你有一定的参考价值。
SQL
case rtrim(isnull(GTIR.U_LDT_GTIMSG,'')) when '00' then 'S' else 'N' end as Procesado";
Tquery
TField Campillo = new TField("GTIR","U_LDT_GTIMSG","MSG");
TIsNull isnullCampo = new TIsNull(Campillo, new TValue(""));
TCase _TCase = new TCase(isnullCampo,new TValue("N"));
_TCase.AddWhen(isnullCampo, OperadoresFiltros.Igual, new TValue("00"), new TValue("S"));