Progress OpenEdge like SQL where IN?

Discussão em 'StackOverflow' iniciado por fdantas, Junho 10, 2016.

  1. fdantas

    fdantas Administrator Moderador

    I can do this with a string and it works great. example:

    for each emp no-lock where
    lookup(emp.name, "james,john,kerry,david") <> 0:
    /* Do something */
    end.


    Now I have emp.ID that is not a string (it's an integer) how can I do where IN ? I tried similar method as above. but it gives me an error, it says "incompatible data types"

    for each emp no-lock where
    lookup(emp.ID, "1,5,89") :
    /* Do something */
    end.


    how do I do this ? thank yo u

    Continue reading...

Compartilhe esta Página