procedure

In Fortran, when in extension definition, how to set a public procedure into private?

好久不见. 提交于 2019-12-13 18:31:36
问题 Assume I first defined a type A in which a public procedure f is defined, and may also be bonded to A. In another module I have this type extended into B. However, when I use type B, I do not want f to be exposed. By the way, I don't want to use the submod technique. complement: Assume type(A) is already defined: module mA type::A ... contains procedure::f endtype endmodule In another module B, we extend A as: module mB use mA type,extends(A)::B ... endtype endmodule In this module, f may

PROCEDURES using HR database

痴心易碎 提交于 2019-12-13 09:39:43
问题 I want to Write a PROCEDURE that will first print the Employee Number and Salary of an employee (i.e. 7839). Then it will increase the salary of an employee 7839 (this will be employee number in the table employee) as per following conditions: Condition-1: If experience is more than 10 years, increase salary by 20%. Condition-2: If experience is greater than 5 years, increase salary by 10%. Condition-3: All others will get an increase of 5% in the salary. The program will print the Employee

Table created in a procedure is dropped, Getting compilation error for procedure

空扰寡人 提交于 2019-12-13 09:35:29
问题 The first step of created procedure is to check if table XYZ exist. If it does then go ahead with further calculation on the table XYZ but if it does not exist create the table and then go ahead with the calculation(inserting new records in the table). So for testing purpose I dropped the table. The moment I dropped the table I am getting compilation error from the procedure saying that table does not exist. How should I solve this issue.I can not change the logic. 回答1: Code which needs to

Not a valid month when executing an IN parameter procedure with date value

有些话、适合烂在心里 提交于 2019-12-13 05:15:41
问题 CREATE OR REPLACE PROCEDURE PROC1( V_STARTTIME IN TIMESTAMP , V_ENDTIME IN TIMESTAMP ) BEGIN INSERT INTO TAB1 SELECT COINS FROM TAB2 WHERE DATE BETWEEN TO_DATE(V_STARTTIME,'mm/dd/yyyy hh:mi:ss aM') AND TO_DATE(V_ENDTIME ,'mm/dd/yyyy hh:mi:ss aM'); END; SAMPLE DATE in Tab2 5/5/2014 9:46:38.000000 AM My script runs between a range of dates. The two dates are IN parameters. When I execute the procedure Execute proc1('5/05/2014 11:25:00 AM','5/05/2014 12:25:00 PM') I am getting not a valid month

Google map disappearing in APEX region

与世无争的帅哥 提交于 2019-12-13 04:51:18
问题 I'm trying to display map in one of my apex pages region, this map will have draggable marker which links to text-fields on other region and displays geocode for latitude and longitude. Everythings works except one thing the map is appearing just for 0.5 second and disappears. I think the problem is somewhere within coding as I have other similar program where map works perfectly fine. I'm using PL/SQL to retrieve map from procedure in a database. Here is my PROCEDURE: create or replace

Wrong number or types of arguments error while calling procedure

a 夏天 提交于 2019-12-13 04:22:04
问题 How can i call procedure inside another procedure in Oracle?I'm trying as follow but i am getting that error "PLS-00306 (325: 13): PLS-00306: wrong number or types of arguments in call to 'TITLE_CRUD'" PROCEDURE create_title( P_TITLE varchar2, P_USER varchar2, P_ERR OUT VARCHAR2 ) IS BEGIN IF P_TITLE IS NULL THEN P_ERR := 'Null value'; ELSE title_crud('I',NULL,P_TITLE,P_USER); END IF; END; PROCEDURE title_crud( P_OP_TYPE VARCHAR2, P_ID number, P_TITLE varchar2, P_USER varchar2, P_ERR OUT

How to call oracle stored procedure in Codeigniter

落爺英雄遲暮 提交于 2019-12-13 03:17:56
问题 I am new with CI application and oracle database. I want to execute a stored procedure from active record. But I can't get hold of any solid documentation. Does anyone have any experience with calling stored procs with CodeIgniter and/or Active Record and passing in parameters? function write_message($type = "debug", $message = "", $description = "") { $_fw =& get_instance(); $data['LOG_TYPE'] = 4; switch ($type) { case "error": $data['LOG_TYPE'] = 1; break; case "success": $data['LOG_TYPE']

How to run the same query against multiple tables in the database

巧了我就是萌 提交于 2019-12-13 01:16:40
问题 While running following query MYSQL complains that : Table 'DB.tableName' doesn't exist. CREATE PROCEDURE CountSignatures() BEGIN DECLARE done INT DEFAULT FALSE; DECLARE signatureCount INT; DECLARE tableName CHAR(100); DECLARE tableList CURSOR FOR Select table_name from information_schema.tables where table_name like "%FAULT_20150320%"; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; SET signatureCount = 1; OPEN tableList; tableListLoop: LOOP SET done = FALSE ; FETCH tableList INTO

Win32 C++ Can Extra Info be Sent with a Procedure

主宰稳场 提交于 2019-12-12 16:00:07
问题 I have been trying to avoid storing any window handles as a global. Up to this point I have been fine. I am using a keyboard hook procedure now, and I am trying to find, if there is a way, to pass my main windows handle to it. If it can't really be done in a simple way, I can just make the main window handle global. LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam); Is there a way I can include the handle within one of the parameters? Thanks. 回答1: No, there is not. The

Joining data from 5 tables without duplicate values and getting result with custom status in Oracle 10g

China☆狼群 提交于 2019-12-12 06:46:30
问题 I have 5 tables which I have to use to get the set of pending documents for a theft claim. I am using Oracle 10g. The table structures are given below. 1. mo_documents_master -- master table for all document types CREATE TABLE "MO_DOCUMENT_MASTER" ( "DOC_ID" NUMBER NOT NULL ENABLE, "DOC_TYPE_NAME" VARCHAR2(100 BYTE), "STATUS" VARCHAR2(50 BYTE), CONSTRAINT "MO_DOCUMENT_MASTER_PK" PRIMARY KEY ("DOC_ID") ) 2. mo_theft_pvt_documents -- Contains list of documents applicable for a theft claim; they