数据库得更新问题 把其中一个QUERY的DATASOURCE设置成另外一个QUERY即可! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update tablename set fieldname=' ' where fieldname2 in (select ........) with query1 dobegin close; sql.clear; requestlive:=true; sql.add('select * from table where field=条件'); open; //you can :dsEdit,dsInsert,delete record. end; 可以调用ApplyUpdate,但应该在TdataSetProvider的BeforeUpdateRcord事件中处理以将数据写入数据库。方法:加入3个UpdateSQL,将要更新的数据付给UpdateSQL,分别执行后将事件处理的Applied := True;当然,将数据写入UpdateSQL有点儿复杂,但是舍不得老婆又怎么抓得到色狼呢? 一个关于在服务中调用选择目录函数的问题。 Delphier们,你们是如何解决Unicode的问题的? SQL數庫庫簡體+客戶端繁體 TVirtualStringTree使用的几个问题 数据显示问题 Automation object 的方法的参数数据类型疑惑 请问斑竹,为什么我不能下载呢? 线程中 list index out of bounds 越界 帮忙测试一下--超强通用多媒体管理信息系统,免费下载,无时间限制,无次数限制! a: array[0..29] of char;如何得到a的char首指针? Win系统高难问题??? 是否可以设置TClass类型参数的默认值?例子代码见内。
where fieldname2 in (select ........)
begin
close;
sql.clear;
requestlive:=true;
sql.add('select * from table where field=条件');
open;
//you can :dsEdit,dsInsert,delete record.
end;
方法:加入3个UpdateSQL,将要更新的数据付给UpdateSQL,分别执行后将事件处理的Applied := True;
当然,将数据写入UpdateSQL有点儿复杂,但是舍不得老婆又怎么抓得到色狼呢?