如何使用调用包的以下过程值插入数据:
PROCEDURE insert_analysis (
p_profile IN t_array_of_number,
p_beam IN t_array_of_number,
p_ts IN TIMESTAMP,
p_min IN NUMBER,
p_max IN NUMBER,
p_avg IN NUMBER,
p_sigma IN NUMBER,
p_roi IN NUMBER,
p_y_max IN NUMBER,
p_y_min IN NUMBER,
p_offset IN NUMBER,
p_width IN NUMBER,
p_iteration_id IN NUMBER,
p_parent_ts IN TIMESTAMP,
p_cup IN NUMBER,
p_cupratio IN NUMBER,
p_beam_center_position IN NUMBER,
p_left IN NUMBER,
p_right IN NUMBER,
p_profile IN NUMBER,
p_cup_gain IN NUMBER,
p_roi_beam IN NUMBER,
p_profiler IN NUMBER)
当我尝试以下时,它不会插入:
exec_analysis.insert_analysis (TO_TIMESTAMP('10-SEP-0214:10:10.123000','DD-MON-RRHH24:MI:SS.FF'),
100,
100,
100,
100,
100,
100,
100,
100,
100,
100,
TO_TIMESTAMP('10-SEP-0214:10:10.123000','DD-MON-RRHH24:MI:SS.FF'),
100,
100,
100,
100,
100,
100,
100,
100,
100);
答案 0 :(得分:0)
也许这个例子会给你一个想法:
CREATE OR REPLACE PROCEDURE AddInTable(Id IN NUMBER, Name IN VARCHAR2)
AS
BEGIN
INSERT INTO TableA(ColumnId, ColumnName)
VALUES(Id, Name);
END;
/
致电程序:
AddInTable(Id => 3, Name => 'Sara');