Hallo,

SELECT ... INTO wird im dynamischen SQL ebensowenig unterstützt wie SET + Select-Statement!
Was jedoch untertützt wird ist VALUES INTO!

PHP-Code:
String 'Values(Select Count(*) from ' + %Trim(Stmt) +') Into ?'
Exec SQL  Prepare MySQL from :String
Exec SQL  Execute MySQL using :Anzahl
String ist ein alphanumerisches Feld (z.B. 1024A Varying).
Anzahl ist eine ganzzahlige Variable (z.B. 10I 0).

Birgitta