现在我又两个数据集CX、CX1。
CX中存的是我的字段信息,CX1是查到的数据
我怎样把cx1中的数据添加到cx中
向高手请教。
初学,最好能详细一些,谢谢!!!
解决方案 »
- 这种报表格式如何用ReportMachine实现
- C语言回调函数如何转化为delphi语言
- 500分问一个UDP协议包采用HTTP中转的问题~
- 菜鸟问题: 请问ProcessEntry32 所在单元是什么? 怎么获得这类API函数的单元名??
- 请问各位高手, 怎么样从数据库sql2000读取图片(IMAGE)字段???
- 请问哪里有话务统计系统下载?我现在要做一个类似的系统,想作个参照
- 为什么我用myodbc连接数据库在查询的时候特别的慢?
- quickrep的打印问题!!!
- 如何学习DELPHI?望各们前辈再给予指点:)
- 各位大侠,请问哪里有DevExpress FlowChart的源码下载?
- 为什么会跳行打印?为什么打印了几行就停止打印了?
- 有关DELPHI三层结构的问题
str:string;
with adoquery do
begin
close
sql.clear;
sql.add('select * from t_yourtablename where ....');
open;
for index:=0 do fiedcount-1 do
begin
str:=Fields[index].FieldName;//get fields name list
// enter your code here.
end;for index:= to recordcount-1 do
begin
//enter your code here.
str:=fields[index].asstring;// get the field value by fieldindex
.....
end;end;
2.合並 insert into select ....
不知道能不能用sql进行插入
请指教
TBatchMove也可以转移数据
1、最笨的办法,从一个数据集读取,然后再写入另外一个
2、使用Insert into tablename select * from tablename2(如果支持)
3、tBatchmove
....
推荐你使用第二个,insert into 要导入数据的表(列名1、列名2...) selecct 列名1、列名2... from 提供数据的表 where ***