请教高手:能不能介绍的稍微详细一些,是不是在iAppServer中创建函数?

解决方案 »

  1.   

    copy copy and paste pastewith ClientDataSet1 do
    begin
      Close;
      Params.Clear;
      Params.CreateParams(ftString,'ParamName',ptInput);
      CommandText := 'Select * from MyTable where id > :ParamName';
      Params.ParamByName('ParamName').Value := YourValue;//所有的数据类型都是这种形式
      Open;
      //ok.
    end;
    //记住上面的顺序好像不能变。
    //Close-->Params.Clear-->Params.Create-->CommandText=''-->params.parambyname().value=Value;
      

  2.   

    规则放在服务器端?
    很简单!只要断开所有与应用的连接。
    所有的数据出入
    都是通过包来进行的。
    具体方法在TypeLib中定义。