-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
SELECT f1,f2 FROM t1 WHERE f1=2;

PREPARE av FROM 'SELECT f1,f2 FROM t1 WHERE f1=?';
SET @f1=2;
EXECUTE av USING @f1;
DEALLOCATE PREPARE av;
