问题已解决,谢谢!
过程代码如下:
create or replace procedure psys_regedit
(
CLIENT_MAC1 in sys_regedit.CLIENT_MAC%type,
CLIENT_IP1 in sys_regedit.CLIENT_IP%type,
REGEDIT_TIME1 in sys_regedit.REGEDIT_TIME%type,
computer_name1 in sys_regedit.computer_name%type,
dep_id1 in sys_regedit.dep_id%type
) as
V_count NUMBER;
begin
select count(*) into V_count from sys_regedit where CLIENT_MAC = CLIENT_MAC1;
if V_count <= 0 then
insert into sys_regedit values (CLIENT_MAC1,CLIENT_IP1,REGEDIT_TIME1,computer_name1,dep_id1);
else
update sys_regedit set CLIENT_IP = CLIENT_IP1,REGEDIT_TIME = REGEDIT_TIME1, computer_name = computer_name1, dep_id = dep_id1 where CLIENT_MAC = CLIENT_MAC1 ;
end if;
end;
/