ArnaudAbadie
Programmer
I have create the current Procedure:
create procedure DupParam(out
aram1 integer,in
aram2 integer,in
aram3 integer,in
aram4 integer);
begin
declare :maxkey integer;
insert into param(iDB,iType,iOrder,iLien,sCod,sLib)
select iDB,iType,iOrder,iLien,'Copy'+ sCod,'Copy'+sLib from param where iKey =
aram2 and iDB =
aram3;
select max(iKey) into :maxkey from param;
set
aram1=:maxkey;
end;
Error message retrieved we I try to run the stored procedure (from Borland C++5 program or PDAC):
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager][SPEng][Pervasive][ODBC Engine Erreur SQL general Interface] Non unique table reference: param
create procedure DupParam(out
begin
declare :maxkey integer;
insert into param(iDB,iType,iOrder,iLien,sCod,sLib)
select iDB,iType,iOrder,iLien,'Copy'+ sCod,'Copy'+sLib from param where iKey =
select max(iKey) into :maxkey from param;
set
end;
Error message retrieved we I try to run the stored procedure (from Borland C++5 program or PDAC):
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager][SPEng][Pervasive][ODBC Engine Erreur SQL general Interface] Non unique table reference: param