我尝试了类似的方法从 Oracle DB 中删除用户。
create or replace procedure skeleton1(inUser varchar) IS
begin
set @str = concat('drop user ', "'",inUser,"'@","'localhost'");
prepare stmt from @str;
-- select @str;
execute IMMEDIATE stmt;
deallocate prepare stmt;
end//
delimiter ;
但我面临多个编译错误。
有人可以帮忙吗?