• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Oracle Table to a fixed position text file

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a table that has columns that are of type varchar2 and number. I need to take the data from these columns and build a flat file that needs to have values specified in certain positions in each row of a text file. I am a newbie for doing this kind of thing. What is the best way to do this? If I use UTL_File and just PUT the values would they be written to the file at the defined length? For example, if defined as varchar2(255), would it be written to the file as a 255 character field or would it be written to the length of the actual value, which may be something like 8? Any example would be greatly appreciated as well. Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic