Home » SQL & PL/SQL » SQL & PL/SQL » read text file
read text file [message #2776] Mon, 12 August 2002 17:17 Go to next message
hshah22222
Messages: 6
Registered: February 2002
Junior Member
Contractor Name, Address, and Zip Code
YORK INTERNATIONAL CORPORATION
PURCHASING DIVISION
631 S RICHLAND AVE
YORK, PA
174033445

Contract_v = varchar2 ''contractor,name,and Zipcode);
Address_v = null;

Above is text file. want to read it in Oracle (preferably)or SQL Server.After reading Contractor Name,address,and Zip Code, I want to substring /concat all 4 lines (including tabs) and remove coma after YORKand put all 4 lines in as one field called Address_v and add ',' at the end (after zip code).

Thanks for the help.
Re: read text file [message #2781 is a reply to message #2776] Tue, 13 August 2002 02:25 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
use sql*loader or utl_file package.
Re: read text file [message #2793 is a reply to message #2781] Tue, 13 August 2002 16:28 Go to previous message
hshah
Messages: 6
Registered: August 2002
Junior Member
I am using UTL_File package . The problem I have coding these lines. need some help . thanks
Previous Topic: Query Error - Invalid Type
Next Topic: Constraint Error
Goto Forum:
  


Current Time: Tue Apr 16 15:26:47 CDT 2024