如何将ADOQuery查询得到的结果添加到另一个表中 查询Base ,插入到BaseTmp ,两个表的结构完全一样,并且查询得到的记录数必定是一条。可以完全用SQL语句完成吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into basetmp select * from base where 你的条件.这样就可以了.. 假设你查询t1表的sql语句为strSql1(slect * from t1 where..)adoquery1.close;adoquery1.sql.clear;adoquery1.sql.text:='insert into T1' + strSql1adoquery1.ExecSQL; sorry! adoquery1.close;adoquery1.sql.clear;adoquery1.sql.text:='insert into T2' + strSql1adoquery1.ExecSQL; 怎样将memo控件中输入的大量汉字按多行打印? 请教各位仁兄,如何在image内显示PSD图片而且还要显示出其透明效果? 没办法,只有请教了 这个函数怎么写? 升级了,散分!还有一个关于IUnknown的问题。 用TIDPop3收邮件,邮件主题为乱码怎么解决? 存储过程??????加分 请问怎样在一个string里加上回车换行呢? 貌似Delphi2007重大bug 明天答辩,老师会问什么问题? 变量等未定义就可以使用的疑惑!大家帮忙看看!~ 鼠标只能在某控件内移动,如何才能使用鼠标移到控件外的地方?
这样就可以了..
adoquery1.sql.clear;
adoquery1.sql.text:='insert into T1' + strSql1
adoquery1.ExecSQL;
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.text:='insert into T2' + strSql1
adoquery1.ExecSQL;