📄 department_up.pks
字号:
CREATE OR REPLACE PACKAGE DEPARTMENT_UP
/*
| Generated by or retrieved from Qnxo - DO NOT MODIFY!
| Qnxo - "Get it right, do it fast" - www.qnxo.com
| Qnxo Universal ID: c8fc32f5-c8b1-4369-8d59-4582d567465c
| Created On: April 04, 2005 08:01:13 Created By: QNXO_DEMO
*/
IS
-- Converts a record to a string that can be displayed.
-- Currently only supports number, date and strings columns
-- (anything that can be converted using STANDARD.TO_CHAR).
FUNCTION to_char (
rec_in IN DEPARTMENT_TP.DEPARTMENT_rt
, delimiter_in IN VARCHAR2 := CHR(10) -- Carriage return
)
RETURN VARCHAR2;
-- Displays a record of information as returned by the
-- utility_package.to_char function.
PROCEDURE display_row (
rec_in IN DEPARTMENT_TP.DEPARTMENT_rt
, delimiter_in IN VARCHAR2 := CHR(10) -- Carriage return
);
-- Converts a row to a string that can be displayed.
-- Currently only supports number, date and strings columns
-- (anything that can be converted using STANDARD.TO_CHAR).
FUNCTION to_char (
department_id_in IN DEPARTMENT_TP.DEPARTMENT_ID_t,
delimiter_in IN VARCHAR2 := CHR(10) -- Carriage return
)
RETURN VARCHAR2;
-- Displays a row of information as returned by the
-- utility_package.to_char function.
PROCEDURE display_row (
department_id_in IN DEPARTMENT_TP.DEPARTMENT_ID_t,
delimiter_in IN VARCHAR2 := CHR(10) -- Carriage return
);
-- Write the specified rows of the table to a file.
-- This program uses UTL_FILE; you are responsible for making
-- sure UTL_FILE is enabled for the specified directory.
PROCEDURE dump_to_file (
loc_in IN VARCHAR2
, file_in IN VARCHAR2
, where_in IN VARCHAR2 := NULL
, delimiter_in IN VARCHAR2 := '|'
);
-- Copy the specified row to another row in the table,
-- using the new values specified by the NV parameters
-- below. NULL values will be ignored. If you specify
-- prefix and/or suffix values then those strings are
-- applied to all VARCHAR2 columns in the table.
PROCEDURE copy (
-- Primary key to identify source row
department_id_in IN DEPARTMENT_TP.DEPARTMENT_ID_t,
-- New value parameters, overriding existing ones.
NAME_nv IN DEPARTMENT_TP.NAME_t DEFAULT NULL,
LOC_ID_nv IN DEPARTMENT_TP.LOC_ID_t DEFAULT NULL,
-- Generated primary key value
department_id_out IN OUT DEPARTMENT_TP.DEPARTMENT_ID_t,
prefix_in IN VARCHAR2 DEFAULT NULL,
suffix_in IN VARCHAR2 DEFAULT NULL
);
END DEPARTMENT_UP;
/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -