用临时表,adoquery读取临时表的数据,读取前先删除所有临时表的数据,针对临时表进行操作(增加、删除、修改),点保存的时候POST并用 insert into yourtable select * from tmptable a where not exists (select id from yourtable where id=a.id)将新添加的数据添加到你所用的表中。
在表中添加一个日期时间字段。 当form create的时候读取系统的时间 begintime:=now(); 然后在取纪录的时候 select * from tablename where dtime>begintime 这时取到的记录集肯定是空集。 然后向表中添加纪录,添加的时候自动为表中的日期时间字段赋值now
insert into yourtable select * from tmptable a where not exists (select id from yourtable where id=a.id)将新添加的数据添加到你所用的表中。
当form create的时候读取系统的时间 begintime:=now();
然后在取纪录的时候
select * from tablename where dtime>begintime
这时取到的记录集肯定是空集。
然后向表中添加纪录,添加的时候自动为表中的日期时间字段赋值now