SQL如下:
recExist,szDRKY,szDRDL01都是变量。 if recExist=0 and szDRKY<>'' and szDRDL01<>'' then
insert into IM_UNIT_M values(szDRKY,szDRDL01,sysdate);
end if;调试发现,recExist=0,szDRKY=AC,szDRDL01=ACER
但是这个if条件判断怎么就是假的呢?是我语法上的问题吗?谢谢
recExist,szDRKY,szDRDL01都是变量。 if recExist=0 and szDRKY<>'' and szDRDL01<>'' then
insert into IM_UNIT_M values(szDRKY,szDRDL01,sysdate);
end if;调试发现,recExist=0,szDRKY=AC,szDRDL01=ACER
但是这个if条件判断怎么就是假的呢?是我语法上的问题吗?谢谢
if (recExist=0 and szDRKY is not null and szDRDL01 is not null) then
insert into IM_UNIT_M values(szDRKY,szDRDL01,sysdate);
commit;
end if;