Hi Experts,
I am stuck at a place.
There is a procedure that checks for something and inserts into an table type upon successful determination of that condition.
But i can insert only once in the table type. Is there a way to insert again and again into the table type.
I probably have to insert multiple records in the table and call this table in XSJS.
PROCEDURE"hello"."helloWorld.db::sampleException"(OUT TRACE_RECORD "hello"."LogTrace")
LANGUAGE SQLSCRIPT AS
BEGIN
DECLARE i int;
select count(*)into i from"hello"."REGION";
IF:i >1then
TRACE_RECORD =SELECT'1'AS"LogID",'1'AS"TraceID"FROMDUMMY;
endif;
IF:i >2then
TRACE_RECORD =SELECT'2'AS"LogID",'2'AS"TraceID"FROMDUMMY;
endif;
END;
The above only inserts one record in the OUT table. I need to insert both the record in the OUT table.
* The above is just a extract of what i am trying to do. I need to insert multiple records using the same way based on conditions.
* I don't have to use Temporary Tables.
Suggestions and Help Please!