试试用临时表
select field1..field2 from tab1 into #tmp where con
insert into tb2 from #tmp where con
select field1..field2 from tab1 into #tmp where con
insert into tb2 from #tmp where con
解决方案 »
- delphi 7的 project options 菜单打不开
- 只运行一个程序,多用户登录仍然有效,如何实现?
- 哪位大师帮忙看看如何通过这几个函数实现弹出USB设备?
- 把本地机子上的DB数据文件集成一个数据包,在delphi中有什么函数或组件可以实现吗?
- 紧急求助,Incompatible types: 'String' and 'TLabel'
- 图像细化
- [[[[如何取出AdoConnection中的所有数据库?]]]]
- 800分求,排课系统,算法
- 求解用TComBoBox的下拉框如何分层显示树型表中的数据?
- 第二次问 关于delphi中报表并列打印的问题
- 一个简单的数据库查询的问题
- 如何安装TGIFIMAGE控件?
构造动态的sql不就可以把数据写到t2中了吗
如sql:='select * from '+turntab.t1
sql:='insert into ' +turntab.t2+‘(c2,d1)'+
'value (:c2,:d1)'
多谢,请问一下“把turntab.t1,t2作为参数”如何实现啊
一句SQL难以实现,建议你用存储过程。
from select(对照表.code,源表.数据)
from 源表,对照表
where 源表.code=对照表.scode