J
jarrm516
Unregistered / Unconfirmed
GUEST, unregistred user!
TDataSetProvider的Options属性中有一项为ptAllowCommandText,如果设为TRUE,
设置tadodataset.commandtext := 'select * from table2';
----------------------------
clientdataset1.close;
clientdataset1.commandtext:='select * from table2 wher ........';
clientdataset1.open;
在客户端程序执行如上,为什么打开的数据就是整个表的,而查询的那部份没执行??
也就是为什么执行的是tadodataset.commandtext;
设置tadodataset.commandtext := 'select * from table2';
----------------------------
clientdataset1.close;
clientdataset1.commandtext:='select * from table2 wher ........';
clientdataset1.open;
在客户端程序执行如上,为什么打开的数据就是整个表的,而查询的那部份没执行??
也就是为什么执行的是tadodataset.commandtext;