Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how can i read files from a pl/sq l program

Answers were Sorted based on User's Feedback



how can i read files from a pl/sq l program..

Answer / mahesh

by using utl_file (built-in package)

Is This Answer Correct ?    5 Yes 0 No

how can i read files from a pl/sq l program..

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

how can i read files from a pl/sq l program..

Answer / swayamji

SELECT TEXT FROM USER_SOURCE WHERE NAME LIKE '<SUB PROGRAM
NAME>'

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

Is a secondary key the same as a foreign key?

0 Answers  


what is csv? : Sql dba

0 Answers  


How do you get column names only for a table (sql server)?

0 Answers  


What is nosql db?

0 Answers  


What is not equal in sql?

0 Answers  


Can a key be both primary and foreign?

0 Answers  


how to start mysql server? : Sql dba

0 Answers  


what is mean by forward declaration and where we'll use it.

4 Answers   TCS,


How do you concatenate in sql?

0 Answers  


What is the syntax and use of the coalesce function?

0 Answers  


What does partition by mean in sql?

0 Answers  


How do I send sql query results to excel?

0 Answers  


Categories