ORA-00905: 缺失关键字

你的语句写错了,select maxlogid into oldmaxlogid from maxidtab;
str1:='select max(logid) into newmaxlogid from '||username||'.loginfo';
--改成str1:='select max(logid) from'||username||'.loginfo';
execute immediate(str1);--改成execute immediate str1 into newmaxlogid;

你可能感兴趣的:(数据库)