X
xuefeiyang
Unregistered / Unconfirmed
GUEST, unregistred user!
select Tdate,XXX from T1
Tdate是时间字段;XXX处要显示'A'/'B'/'C',条件是
if (Tdate<date-60)and(Tdate>date-30)
XXX:='A'
else
if (Tdate<date-90)and(Tdate>date-60)
XXX:='B'
if (Tate<date-120)and(Tdate>date-30)
XXX:='C';
Tdate是时间字段;XXX处要显示'A'/'B'/'C',条件是
if (Tdate<date-60)and(Tdate>date-30)
XXX:='A'
else
if (Tdate<date-90)and(Tdate>date-60)
XXX:='B'
if (Tate<date-120)and(Tdate>date-30)
XXX:='C';