procedure

How to passing list data variable to store procedure and execute the store procedure?

偶尔善良 提交于 2021-01-29 14:31:58
问题 I have 8 variable list and collect them to variable ls in this below code : Workbook workbook = new Workbook("D:/excel file/Mapping Prod Matriks _Group Sales Commercial.xlsx"); com.aspose.cells.Worksheet worksheet = workbook.getWorksheets().get(0); com.aspose.cells.Cells cells = worksheet.getCells(); Range displayRange = cells.getMaxDisplayRange(); List<String> ParaObjGroup = new ArrayList<String>(); List<String> ParaObjCode = new ArrayList<String>(); List<String> ParaProdMatrixId = new

MySQL procedure subquery returns null

Deadly 提交于 2021-01-29 10:16:52
问题 I have a mysql procedure where I'm setting values using subqueries as it progresses, and partway through the subqueries, all structured the same only using different parameters, start returning null. If I literally copy and paste the subquery into a sql window, it returns a result. Service Revenue to Income Summary works just fine, but after "COGS to Income Summary", "VALUE" continues to return NULL DELIMITER $$ CREATE DEFINER=`shopf740`@`localhost` PROCEDURE `PeriodEnd`(IN `processdate` DATE

How to combine the results of two queries?

大憨熊 提交于 2021-01-29 08:33:37
问题 I created a procedure that has two selects, I want to join the result of these two selects in one. This is my procedure CREATE PROCEDURE spConsultarVendas @nomeUsuario nvarchar(60), @dataEmissao datetime, @dataSaida datetime AS BEGIN SELECT NF.ID, NF.NaturezaOperacao, NF.DataEmissao, NF.ValorTotal FROM NotaFiscal AS NF INNER JOIN Venda AS V ON NF.ID_Venda = V.ID INNER JOIN Usuario AS U ON V.ID_UsuarioComissao1 = U.ID WHERE U.Descricao = @nomeUsuario AND (NF.DataEmissao >= @dataEmissao AND NF

Encrypt decrypt PL SQL Packages in oracle

吃可爱长大的小学妹 提交于 2021-01-28 05:24:27
问题 Is there any way to encrypt the SQL Packages (Stored procedure, Functions etc) in oracle using specific key and decrypt using the same key for security purpose??? i am using oracle 12c.... Thanks, 回答1: Yes, you can use the wrap tool for this, see PL/SQL Source Text Wrapping You can wrap the PL/SQL source text, thereby preventing anyone from displaying that text with the static data dictionary views *_SOURCE . In principle decryption is not supported, however you can use tools like Unwrap It!.

Why FreeAndNil implementation doing Nil before Free?

痞子三分冷 提交于 2020-06-29 06:41:46
问题 If you will look at the code of FreeAndNil procedure you will see: procedure FreeAndNil(var Obj); var Temp: TObject; begin Temp := TObject(Obj); Pointer(Obj) := nil; Temp.Free; end; What is the reason they assigning Nil to an object reference and only after this destroying it? Why not vice-versa? 回答1: I can think of two reasons for doing it this way round, neither of which seems at all compelling. Reason 1: to guarantee that the reference is set to nil in case an exception is raised The

How read a value in pl/sql procedure?

左心房为你撑大大i 提交于 2020-06-28 10:36:18
问题 I am having problem regarding to scan a value in a pl/sql procedure. When I have execute the procedure, it ignores the a:='&a'; . Procedure Body create or replace PROCEDURE Testing IS a VARCHAR2(3); BEGIN DBMS_OUTPUT.PUT_LINE('Enter a : '); a:='&a'; END Testing; Procedure Calling SET SERVEROUTPUT ON; cl scr; Execute Testing; Output PL/SQL procedure successfully completed. Enter a : Can anybody help me, please!? 回答1: In SQL*Plus we have the prompt and accept syntax, but there is no direct way

Getting “Invalid Procedure Call Argument” When i run call a Bat file from Subroutine

﹥>﹥吖頭↗ 提交于 2020-06-28 05:09:12
问题 Find the below code: Sub Button1_Click() argh = Shell("C:\Users\YYYY\Desktop\test1.bat", vbNormalNoFocus) End Sub When I run call a Bat file from Subroutine, I always get below error. Attached screen shot as well. "Run time Error" "Invalid Procedure call or argument" 回答1: We cannot run a .bat file from Excel macro , It will always ask for the Administrator permissions. Better Create a .vbs file and call the .bat file from .vbs file. .vbs file : Save the file as runbatch.vbs Set objShell =