我想对一个数据进行如下操作:先判断该表内的数额是否为空,如不为空要进行数据的删除,否则进行数据的插入,各位给个意见 if adoquery1.recordcount=0 theninsertelsedelete 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if adoquery1.recordcount=0 thenbegin adoquery1.sql.clear; adoquery1.sql := 'insert into table1 select * from table2 '; open;end elsebegin adoquery1.sql.clear; adoquery1.sql := 'delete * from table1'; open;end; 什么是结贴率 瑞星抵制Delphi6将Delphi认为成为病毒!!大家来支持啊!!! richview问题 请教高手 在线等待 如何实现启动计算机就自动启动程序?如何使程序运行时图标在状态栏上显示,就象qq一样?(在线) 请问怎么在TREEVIEW树中点击,右键选中某个结点时弹出相应的菜单? 出售各种游戏代码 你准备如何做这个模块 关于DLL的问题!! 唉,中国人真是健忘! 数据库解决方案,材料帐核算系统 好烦得问题
begin
adoquery1.sql.clear;
adoquery1.sql := 'insert into table1 select * from table2 ';
open;
end else
begin
adoquery1.sql.clear;
adoquery1.sql := 'delete * from table1';
open;
end;