Hi all
Quick question. I am working on a c#/appserver "GetRecords" test project
Is it possible to fill a temp-table using sql-select statement (that i pass in as parameter ?
For instance:
i also tried to use query:
I have no problem using normal progres syntax "for each ....", but i am exploring sql select statements. Any Ideas ??
Quick question. I am working on a c#/appserver "GetRecords" test project
Is it possible to fill a temp-table using sql-select statement (that i pass in as parameter ?
For instance:
Code:
def temp-table tt like customer.
select * from customer where c-name like 'Nor%'.
create tt.
buffer-copy customer to tt.
i also tried to use query:
Code:
def var qh as handle.
CREATE QUERY qh.
qh:SET-BUFFERS(buffer customer:handle).
qh:QUERY-PREPARE("select * from customer where c-name like 'Nor%'").
qh:QUERY-OPEN().
qh:GET-FIRST(no-lock).
do while not qh:query-off-end:
create tt.
//Fill
qh:GET-NEXT().
end.
qh:query-close().
delete object qh.
I have no problem using normal progres syntax "for each ....", but i am exploring sql select statements. Any Ideas ??