procedure

the functions (procedures) in MIPS

房东的猫 提交于 2019-12-03 11:29:29
问题 I'm new in MIPS language and I don't understand how the functions (procedures) in the MIPS assembly language work. Here are but I will specify my problem : What does: jal jr $ra mean in mips language and the important thing How can we use them when we want to create a function or (procedure)? 回答1: Firstly, you might want to check this quick MIPS reference. It really helped me. Secondly, to explain jal , jr and $ra . What jal <label> does is jump to the label label and store the program

Get the name of the calling procedure or function in Oracle PL/SQL

て烟熏妆下的殇ゞ 提交于 2019-12-03 08:40:47
问题 Does anyone know whether it's possible for a PL/SQL procedure (an error-logging one in this case) to get the name of the function/procedure which called it? Obviously I could pass the name in as a parameter, but it'd be nice to make a system call or something to get the info - it could just return null or something if it wasn't called from a procedure/function. If there's no method for this that's fine - just curious if it's possible (searches yield nothing). 回答1: There is a package called

the functions (procedures) in MIPS

血红的双手。 提交于 2019-12-03 01:55:20
I'm new in MIPS language and I don't understand how the functions (procedures) in the MIPS assembly language work. Here are but I will specify my problem : What does: jal jr $ra mean in mips language and the important thing How can we use them when we want to create a function or (procedure)? Mihai Scurtu Firstly, you might want to check this quick MIPS reference. It really helped me. Secondly, to explain jal , jr and $ra . What jal <label> does is jump to the label label and store the program counter (think of it as the address of the current instruction) in the $ra register. Now, when you

Get the name of the calling procedure or function in Oracle PL/SQL

拟墨画扇 提交于 2019-12-03 00:10:18
Does anyone know whether it's possible for a PL/SQL procedure (an error-logging one in this case) to get the name of the function/procedure which called it? Obviously I could pass the name in as a parameter, but it'd be nice to make a system call or something to get the info - it could just return null or something if it wasn't called from a procedure/function. If there's no method for this that's fine - just curious if it's possible (searches yield nothing). There is a package called OWA_UTIL (which is not installed by default in older versions of the database). This has a method WHO_CALLED

Delphi function, Not allowing files and folders from main directory during compression

限于喜欢 提交于 2019-12-02 23:45:32
问题 I used this code to combined all files into one from a directory, not really compression, procedure CompressDirectory(InDir : string; OutStream : TStream); var AE : TArchiveEntry; procedure RecurseDirectory(ADir : string); var sr : TSearchRec; TmpStream : TStream; begin if FindFirst(ADir + '*', faAnyFile, sr) = 0 then begin repeat if (sr.Attr and (faDirectory or faVolumeID)) = 0 then begin // We have a file (as opposed to a directory or anything // else). Write the file entry header. AE

How to call a mysql stored procedure, with arguments, from command line?

天大地大妈咪最大 提交于 2019-12-02 21:48:29
How can I call a stored procedure from command line? I have a procedure: CREATE DEFINER=`root`@`localhost` PROCEDURE `insertEvent`(IN `dateTimeIN` DATETIME) NO SQL BEGIN SET @eventIDOut = NULL; IF EXISTS(SELECT * FROM `events` WHERE `eventDate` = dateTimeIN) THEN SELECT `eID` INTO @eventIDOut FROM `events` WHERE `eventDate` = dateTimeIN LIMIT 1; ELSE INSERT INTO `events` (`eventDate`) VALUES(dateTimeIN); SET @eventIDOut = last_insert_id(); END IF; SELECT CONCAT(@eventIDOut); END I tried this: mysql> CALL insertEvent(2012.01.01 12:12:12); Result: ERROR 1064 (42000): You have an error in your

TOAD displaying cursor recordset returned by stored procedure

三世轮回 提交于 2019-12-02 20:16:13
问题 How I could print recorset result from the returning cursor, please. Down below executes fine but I need to see result. This is block in TOAD, calling package sp AMD_NEEDMSG: DECLARE RETURN_RECORDSET CTI_MATRIX.AMD.REF_CURSOR; BEGIN CTI_MATRIX.AMD.AMD_NEEDMSG ( '88888888885', RETURN_RECORDSET ); END; This package spec: CREATE OR REPLACE PACKAGE CTI_MATRIX.AMD AS TYPE REF_CURSOR IS REF CURSOR; PROCEDURE AMD_NEEDMSG (v_CRN IN VARCHAR2, return_recordset OUT REF_CURSOR); END AMD; This is package

Stored Procedure that has table argument in T-SQL

二次信任 提交于 2019-12-02 18:36:06
问题 Table Argument as OUTPUT I want to pass a table variable into a procedure that has table argument as output, but not as read only! I want to be able to modify that argument inside the PROC. Is this possible? If it's not possible, is there another way to do this? thanks! 回答1: You'd have to copy the table valued parameter into a table variable or temp table CREATE PROC DoStuff @tvp SomeTableType READONLY AS .. SELECT * INTO #LocalCopy FROM @tvp; -- take local copy ... DoStuff -- do processing

SQL Server : How to fetch data from dynamic multiple tables?

点点圈 提交于 2019-12-02 18:26:32
问题 Using SQL SERVER. The database contains data from different years, somehow I want to fetch all the data (all the years) and show to the user, for example, database contains table: table -------- records_2000_01 records_2000_02 records_2000_03 ... now through select TABLE_NAME into @tableName from information_schema.tables where table_name like 'records_%' I can fetch all the table name, how to write a SQL (or perhaps procedure) to fetch all data from these tables? make all record into one

PL/SQL procedure succesfully completed but shows nothing

故事扮演 提交于 2019-12-02 16:46:26
问题 I've the following procedure code: create or replace PROCEDURE Ventas_cliente( p_DNI IN CHAR ) IS CURSOR c_pedidos_clientes IS SELECT * FROM Pedidos_venta WHERE DNI_Cliente = p_DNI; BEGIN DBMS_OUTPUT.PUT_LINE('test'); FOR fila IN c_pedidos_clientes LOOP DBMS_OUTPUT.PUT_LINE(fila.OID_Pedido_venta||' '||fila.precio); END LOOP; END Ventas_cliente; When I type EXECUTE Ventas_(88441020); Oracle returns PL/SQL procedure succesfully completed . The great problem is that it'd return 'test'. Why does