Subject | null stored procedure? |
---|---|
Author | newgen3152003 |
Post date | 2004-06-20T10:15:35Z |
Hi all,
This is probably obvious but what is wrong with this stored
procedure? I
get the error invalid character ":" Can I not do this?
begin
if (:suptype is null) then
begin
:suptype = 'type';
end
insert into SUPPLIERS
(IDSUP,SUPCODE,SUPNAME,SUPTYPE )
values
(:IDSUP,:SUPCODE, :SUPNAME, :SUPTYPE );
suspend;
end
Thanks
Daniel
This is probably obvious but what is wrong with this stored
procedure? I
get the error invalid character ":" Can I not do this?
begin
if (:suptype is null) then
begin
:suptype = 'type';
end
insert into SUPPLIERS
(IDSUP,SUPCODE,SUPNAME,SUPTYPE )
values
(:IDSUP,:SUPCODE, :SUPNAME, :SUPTYPE );
suspend;
end
Thanks
Daniel