string对应的是otstring
datatime对应的是什么

解决方案 »

  1.   

    DOA 4.0 中
    DeclareVariable  和  DeclareAndSet 可在程序运行时设定参数,原型:
        procedure DeclareAndSet(AName: string; AType: Integer; const AValue: Variant);
        procedure DeclareVariable(AName: string; AType: Integer);其中的 AType 为对应的数据类型,定义如下:const // External Oracle Datatypes
      otInteger     = 3;
      otFloat       = 4;
      otString      = 5;
      otLong        = 8;
      otDate        = 12;
      otLongRaw     = 24;
      otBoolean     = 252;  // Does not work as bind variable!
      otCLOB        = 112;
      otBLOB        = 113;
      otBFile       = 114;
      otCursor      = 116;
      otObject      = 108;
      otReference   = 110;
      otDBChar      = 96;
      otChar        = 97;
      otPLSQLString = 10;
      otSubst       = 1;    // Substitution variable, will be replaced in the SQL text
      otTimestamp   = 187;const // Internal Oracle Datatypes
      otVarchar2    = 1;
      otNumber      = 2;
      otVarchar     = 9;
      otRowId       = 11;
      otRaw         = 23;
      otMLSLabel    = 106;
      // Oracle8
      otRowidDesc   = 104;
      // Oracle9
      otTimestampTZ  = 188;
      otTimestampLTZ = 232;
      otIntervalYM   = 189;
      otIntervalDS   = 190;
      

  2.   

    呵呵
    看Help就是了http://lysoft.7u7.net