首页 文章

OpenEdge ABL / Progress 4GL查询

提问于
浏览
1

我需要帮助编写这个进度查询:首先找到一个无锁,其中aa =变量,ab = variable2和ac = variable3和((ad <> variable4和ae <> variable5和af <> variable6)/ * this“或者“只是sudecode我想要它做什么* /或(首先b无锁,其中ba =变量和(bb = variable7或bb = variable8 no-error)))no-error .

“或者”是我遇到麻烦的事情 .

3 回答

  • 0

    鉴于您想要创建的语句,我建议采用以下两步过程:

    find first b no-lock where b.a = variable 
                               and (b.b = variable7 or b.b = variable8) no-error.
    
    find first a no-lock where a.a = variable 
                               and a.b = variable2 
                               and a.c = variable3 
                               and ((a.d <> variable4 and a.e <> variable5 and a.f <> variable6) 
                                     or available b) 
                 no-error.
    
  • 0

    不要过多考虑MS SQL查询或一般脚本查询 .

    比如每个test1 no-lock其中test1.a = var1和test1.b = var2 no-error .

    与找到第一个test1 no-lock相同,其中test1.a = var1和(test1.b = var2或test1.c = var3)无错误 . //它一次只给你一行 .

  • 2

    我相信你要找的声明是'可以找到' .

    ... or can-find(first b where b.a = a.a ...
    

相关问题