how can i read files from a pl/sq l program
Answers were Sorted based on User's Feedback
Answer / guru
__________________________________________________________
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'R');
UTL_FILE.PUTF(fileHandler, 'Look ma, I''m writing to a
file!!!\n');
UTL_FILE.FCLOSE(fileHandler);
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: Invalid path
for file or path not in INIT.ORA.');
END;
/
________________________________________________________
Thanks
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / swayamji
SELECT TEXT FROM USER_SOURCE WHERE NAME LIKE '<SUB PROGRAM
NAME>'
Is This Answer Correct ? | 0 Yes | 3 No |
Is join same as left join?
explain what is mysql? : Sql dba
What is natural join in sql?
Which is faster subquery or join?
What is dcl in sql?
Explain ddl statements in pl/sql?
Can you join a table to itself?
Define commit, rollback and savepoint?
What are % type and % rowtype?
Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors?
need to split a string into separate values. eg. col1 col2 ---------- 100 - 'a,b,c' 200 - 'a,x,d,e' 300 - 'c' result: value count ------------- a - 2 b - 1 c - 2 etc.
There are 5 records in a table and we have implemented two triggers that are :pre_query and post_query how many times these triggers will fire.