K kingsword Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-15 #1 我想加入一条判断语句:先对数据库进行检索从sitexch表中查看sit_upcode是否为空 或null,如果不为空或null提示信息中断程序,否则进行下一部,具体的代码怎么写,谢谢
B bianlx Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-15 #2 sybase数据库下的sql语句如下,你可以把语句放到query中执行,看其值即可 select count(*) from sitexch where isnull(sit_upcode)
M myname Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-15 #3 dataset.first while not dataset.eof do begin if dataset.fieldbyname('sit_upcode').isnull then showmessage('...为空'); dataset.next; end;
dataset.first while not dataset.eof do begin if dataset.fieldbyname('sit_upcode').isnull then showmessage('...为空'); dataset.next; end;