怎样将有相同字段的数据表合并生成新表? 两个数据表中存在id的字段,我想将其中id相同的数据提取出来生成新的表,怎样用delphi实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用union:insert into newtableselect id from table1unionselect id from table2 sorry,理解错:insert into newtableselect table1.id from table1, table2 where table1.id = table2.id Timage和TLable组合控件的问题? 新建delphiQQ群,欢迎大家加入 一个让人束手无策的问题,如何动态调整窗体控件的Align; 请教:用Adoquery查询,并把查询结果分页显示在DbGrid!急用!在线等! 为什么我的应用服务器无法读取文件 窗体的显示和隐藏 foxnt大斑竹进来,解释解释来。 关于Delphi的默认资源的问题 请个位大虾一定帮帮忙 十万火急!!!高手接分!!! 数据库备份问题? 号外!号外!笑话热卖!不买也看看啊!
insert into newtable
select id from table1
union
select id from table2
insert into newtable
select table1.id from table1, table2 where table1.id = table2.id