LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2014, 03:07 AM   #1
mierdatuti
Member
 
Registered: Aug 2008
Posts: 53

Rep: Reputation: 15
asign multiple rows from query to a variable


Hi,

I have a oracle query with multiple rows.
I assign into a variable but when I do echo, I would like to show like these:

echo $res
aaaaa 111111
bbbbb 222222
..........


but it shows me:

aaaaa 111111 bbbbbb 22222 .....
 
Old 07-18-2014, 03:12 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

does the following help?
Code:
echo "$res"
Evo2.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting rows/lines in multiple level sal_x_sal Linux - General 2 01-09-2012 03:55 PM
[SOLVED] Transpose multiple rows into a single column wonjusup Linux - Newbie 13 04-09-2011 07:53 AM
[SOLVED] Devilspie and Compiz Viewports on Multiple Rows Berrex Linux - Software 2 02-08-2011 03:16 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 07:36 PM
MYySQL Query return more rows than exist in table paddyjoy Programming 4 02-28-2006 12:39 AM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration