Solved

Looping through all the lines in a file.

Posted on 2011-03-15
2
355 Views
Last Modified: 2012-06-27
In oracle plsql, how to loop through each and every line in a flat file.

for eg, in and each every line, I need to check the position of a particuar word and store it in a variable.

how to do this?
0
Comment
Question by:sakthikumar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Rindbaek earned 500 total points
ID: 35137218
Zea zodiac has a good answer here to reading the file line by line line just do what you need to do instead of the   "dbms_output.put_line(l_text);"
http://www.experts-exchange.com/Database/Oracle/Q_21081949.html

If the file is a text file with some sort of a seperator  you could see it as an external table instead.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm
0
 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 35141593
Can you please provide the sample of your flat file and desired output?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question