我写了如下的代码,
  with DataModule1.ClientDataSet1 do
  begin
    if active then close;
    s:='select * from test ';
    commandtext:=s;
    open;
  end;
    
    在中间层可以看到语句执行的输入,但执行完成后立即关闭了,在客户端无法得到返回的结果,我该怎样设置才能得到返回的结果呢?