怎样将有相同字段的数据表合并生成新表? 两个数据表中存在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 delphi和sql进程之间的那些事! 怎么利用加密狗加密我的程序 服务程序的问题 请教各位大虾!如何在TcxGrid 中锁定列! 急啊。。。。。。。。。。。。。。。 校验算法! "Invalid character was found in text content"此错误如何解决? 用indy下载数据 新手求教!简单查询语句,查不出来结果!!!!!好急! 主从关系的问题 在ListView中如何根据单元格的值来显示单元格的背景色? 数据库备份问题? 号外!号外!笑话热卖!不买也看看啊!
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