动态设置ClientDateSet的commandtext的属性值,前提是服务器端相应的设置已经作好了。
如:ClentDateSet1.Close;
ClientDateSet1.CommandText :='select * from .... ';
ClientDateSet1.Open;
如:ClentDateSet1.Close;
ClientDateSet1.CommandText :='select * from .... ';
ClientDateSet1.Open;
还有一点要在DataSetProvider1的options:poAllowCommandText设置为True;