The
University of Vermont Producing a file in "Delimited" format.Frequently, you will want to grab some data out of a relational database repository, and then "do something with it". Something like: Use a word-processing program to do a "mail merge" and generate letters that include some fields from your query; or pull the data into a spreadsheet to produce a graph for a report or presentation; or pull the data in a desktop database like approach for further manipulation. One easy way to do this is to use SQL to produce a file in "delimited text file format". Looks like this:
To create a file like this follow these steps:
/* This is what you need to do to get a "flat" */
2) Tell SQLPLUS that you want the results from your SELECTs written
to a file.
Note: Some programs look at the file extension,
and decide what to do with the
3) Generate the "Labels" line. Use the "select <literal> from
dual" technique.
4) Generate the data lines. SELECT '"'||SPRIDEN_FIRST_NAME||'","'||
5) Copy the file to your desktop computer.
6) Open up your desktop program, and either "OPEN" or "IMPORT" the .txt
file.
|
Brought
to you through the courtesy of Computing
and Information Technology, University of Vermont. Copyright ©
1996 The University of Vermont and others. All rights reserved.
The University supports both institutional and personal web pages. The views expressed on personal web pages are strictly those of the author, and are not reviewed or approved by the University of Vermont Send questions and comments to Keith.Kennedy@uvm.edu Read the
Webmaster's
Policies.
|