![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| select data from oracle table and save the output as csv file or .txt file in unix/solaris - script | aemunathan | Shell Programming and Scripting | 4 | 2 Weeks Ago 10:13 PM |
| how to extract the data from database (oracle) and send the output as an .xls file? | psiva_arul | Shell Programming and Scripting | 1 | 10-13-2009 01:58 PM |
| load a data from text file into a oracle table | raji35 | Shell Programming and Scripting | 2 | 01-15-2009 03:48 AM |
| To load data from variable to oracle table ....??? | Amit.Sagpariya | Shell Programming and Scripting | 2 | 12-15-2008 08:36 AM |
| To load data from variable to oracle table | Amit.Sagpariya | Shell Programming and Scripting | 1 | 12-15-2008 07:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
select data from oracle table and save the output as csv file
Hi
I need to execute a select statement in a solaris environment with oracle database. The select statement returns number of rows of data. I need the data to be inserted into a CSV file with proper format. For that we normally use "You have to select all your columns as one big string, concatenating each column". But my select query contains group by and order by functions using some alias names of the columns. Can someone help me with the changes required to the sql query format to make sure that the data is inserted properly into csv file. Code:
select e.employee_name emp_name||' ,'|| e.employee_address emp_add||' ,'|| d.department_name dest_name |
![]() |
| Bookmarks |
| Tags |
| alias, format, sql output |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|