In a trigger, I need to do some stuffs only when the code is not running from autonomous transaction. Is there a way to detect if the code is running ...
In a trigger, I need to do some stuffs only when the code is not running from autonomous transaction. Is there a way to detect if the code is running ...
GET_STRING_LIST takes a string list as input and returns an ordered table of different IDs in a variable :RES_TABLE. I would like to take every row (I ...
I need get data from cursor by field name, stored in var. For example, I have statement: And now I need get value from cursor by dynamically change ...
How can I use indexed variable in a Firebird stored procedure? I mean, I have output parameters ODATE1, ODATE2, ODATE3, can I use as ':ODATE' || COUNT ...
I'm new to Firebird and need your help. I know that Firebird's task isn't to do a nice print. I have a stored procedure with following reduced output ...
In the code below (stored procedure body), whether the value of the cursor field is automatically updated after UPDATE or not? If not, is the Close / ...
I have the following stored procedure: In the select statement I have the following three accounts: 71212 71211 83791 Ideally I would li ...
Is there a way to perform a union of 2 sets where both were output by 2 different execute block commands? The sets structure are the same but each on ...
I can insert table column names dynamically the problem is when I want to insert the new or old values in my log table I am getting a string 'old.Coln ...
I need a stored procedure in firebird 3.0 to return True, False or 1,0 result to check if this person or the record exists in database. If exists the ...
I want to write execute block that I can use for multiple databases with similar structure, some don't have 1 or more tables. I use something like thi ...
I am working with Delphi 7 and Firebird 2.0. In my application I am using TIBScript components. The problem arises when I use local variables in the s ...
In Firebird, DECLARE statements can be listed at the beginning of an EXECUTE BLOCK statement: EXECUTE BLOCK [(<inparams>)] [RETURNS (<o ...
We are using SQL manager for interbase-firebird and also Firebird 3.0.5. We are creating a procedure and that works fine. However from the moment we ...
I have to process records in a stored procedure's loop, for example: The problem is when the execution of process_one_record() fails (generates any ...
I'm experiencing performance drop in one of our Firebird stored procedures and I have no clue why. I have found the following code in the mentioned SP ...
I have the following stored procedure in Firebird SQL: When I run the following query: I get the following error: MULTIPLE ROWS IN SINGLETON ...
I have a very simple stored procedure: I am getting an error: TOKEN UNKNOWN LINE 22 COLUMN 1. Line 22 column 1 refers to the last line of t ...
I have to do one query to get one parameter (I need a "1"), but this parameter can be in different cells, for example: +--------------+-------------- ...