create or replace package body pkg_name
is
procedure fetch_and_insert_data
is
l_display varchar2(32767);
l_id varchar2(32767);
l_filename varchar2(100) := 'my_file.xlsx';
v_file UTL_FILE.FILE_TYPE;
begin
execute immediate 'create or replace directory XOBJ as ''' || c_file_dir || '''';
v_file := UTL_FILE.FOPEN(location => 'XOBJ',
filename => l_filename,
open_mode => 'r',
max_linesize => 32767);
loop
begin
UTL_FILE.GET_LINE(v_file,l_id);
dbms_output.put_line(l_id);
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
end;
end loop;
UTL_FILE.FCLOSE(v_file);
EXCEPTION
WHEN OTHERS THEN
UTL_FILE.FCLOSE(v_file);
RAISE;
end fetch_and_insert_data;
end;
如果我加载这两个软件包,则会收到警告,“以下对象已被'package:dplyr'掩盖:合并” 。
强制dplyr library(tidyverse)
library(gridExtra)
对象的正确方法是什么?这些似乎都起作用。有首选的语法吗?
combine
答案 0 :(得分:0)
尽管我不确定这是否是最佳做法,但我会使用dCombine() <- dplyr::combine()
。