数据表操作问题 我想把一张表的所有记录添加到另外一张表里面然后把这张表的记录全部删掉两个表的表结构完全相同。请问该怎么做? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 添加记录:insert into Table2 select * from Table1删除记录:delete from table1 本地表用batchmove控件procedure TForm1.Button1Click(Sender: TObject);begin BatchMove1.Source:=table1; //源表 BatchMove1.Destination:=table2; //目的表 BatchMove1.Mode:=batappend; //添加倒后面 BatchMove1.Execute; table1.Close; table1.EmptyTable; table1.Open; //清空源表end; 怎样用api来实现udp数据包的接收和发送?? 求谁有计算机方面的奇闻逸事 请问这个嵌套查询哪里错了? 请大虾提供水晶报表8.0安装序列号!谢谢! 回来了,就多放点分 主从表设计的问题。 怎么现在在Csdn上提问后,回答的问题没有邮件通知了? 怎样编代码让程序自己重新运行一下自己 sql语句怎样写才能从一张表中取出一个月的记录? 如何在弹出消息框后关闭窗口? 帮忙看看,用字符检索汉字? 如何用ADO连接*.DB数据库?
insert into Table2 select * from Table1删除记录:
delete from table1
procedure TForm1.Button1Click(Sender: TObject);
begin
BatchMove1.Source:=table1; //源表
BatchMove1.Destination:=table2; //目的表
BatchMove1.Mode:=batappend; //添加倒后面
BatchMove1.Execute;
table1.Close;
table1.EmptyTable;
table1.Open; //清空源表
end;