Subject Generate a SELECT statement with variables in a procedure
Author Xavier Solé
Hello listers,

I would like to know if it is possible to generate a SELECT query in a
procedure like this example. Imagine this is part o a procedure:


selectedcolumn = "name"

SELECT selectedcolumn FROM MYTABLE


Could anyone help me?