Hallo,
SELECT ... INTO wird im dynamischen SQL ebensowenig unterstützt wie SET + Select-Statement!
Was jedoch untertützt wird ist VALUES INTO!
String ist ein alphanumerisches Feld (z.B. 1024A Varying).PHP-Code:
String = 'Values(Select Count(*) from ' + %Trim(Stmt) +') Into ?';
Exec SQL Prepare MySQL from :String;
Exec SQL Execute MySQL using :Anzahl;
Anzahl ist eine ganzzahlige Variable (z.B. 10I 0).
Birgitta
Bookmarks