zoukankan      html  css  js  c++  java
  • range for query

    static

    void range_test(Args _args)

    {

        Query                   Query;

        QueryRun                QueryRun;

        QueryBuildDataSource    qbr;

    CustTable custtable;

       

    //QueryBuildRange         qbr;

        Range                   range =

    'den-000004';

       

    int                     num;

        Query =

    new Query();

        qbr = Query.addDataSource(

    tableNum(CustTable));

        qbr.name(

    "Customer");

        qbr.addRange(

    fieldNum(CustTable, AccountNum)).value(strFmt('((%1.%2 == "%4") || (%1.%3 == "%4"))',

            qbr.name(),

           

    fieldStr(CustTable, AccountNum),

           

    fieldStr(CustTable, InvoiceAccount),

            range));

        info(Query.toString());

        QueryRun =

    new QueryRun(Query);

       

    while (QueryRun.next())

        {

            custtable = QueryRun.get(

    tableNum(CustTable));

            info(custtable.AccountNum);

            num++;

           

           

    if (num > 5)

               

    break;

        }

    }

  • 相关阅读:
    ICON 收集
    vs2015with_update_3
    文件大全,以后就从这些格式入手fuzz
    诗词
    tools URL 收集
    (四)ORBSLAM运动估计
    (三)ORB特征匹配
    (二)ORB描述子提取源码思路与实现
    (一)ORB描述子提取
    双目立体匹配——归一化互相关(NCC)
  • 原文地址:https://www.cnblogs.com/lingdanglfw/p/4811951.html
Copyright © 2011-2022 走看看