473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

DB2 - Select ... Output Option....

I am using AIX DB2 v8

we have tables so huge...when I do query...like the following:

db2 "select * from table fetch the first 10 rows with ur"

all the outputs are wrapped around the screens, and u are hardly to
follow which value to which columns...

Is there a way to have the output in the following formats...column in
one side, and value on the other side?

Column Value
Column Value
Column Value
......

Please advise...
Thanks
Nov 16 '07 #1
2 3100
On Nov 16, 7:36 pm, "d.k.chung" <dkhch...@gmail.comwrote:
I am using AIX DB2 v8

we have tables so huge...when I do query...like the following:

db2 "select * from table fetch the first 10 rows with ur"

all the outputs are wrapped around the screens, and u are hardly to
follow which value to which columns...

Is there a way to have the output in the following formats...column in
one side, and value on the other side?

Column Value
Column Value
Column Value
.....

Please advise...
Thanks
Here's what I normally do (I'm on linux, so it might not apply on
aix):

db2 "select * from table fetch first 10 rows only with ur" | less -S

/Lennart

Nov 16 '07 #2
d.k.chung wrote:
I am using AIX DB2 v8

we have tables so huge...when I do query...like the following:

db2 "select * from table fetch the first 10 rows with ur"

all the outputs are wrapped around the screens, and u are hardly to
follow which value to which columns...

Is there a way to have the output in the following formats...column in
one side, and value on the other side?

Column Value
Column Value
Column Value
.....

Please advise...
Thanks
The simple way to look at output that exceeds the width of the screen is to
use the DB2 GUI (the command editor)

Colin
Nov 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Salve Håkedal | last post by:
When I select Februar here and sends, selection returns to Januar. I know why: no option is marked selected... But can php get this right in an easy way? <html><head><title>Part of a bigger...
1
by: Burton Figg | last post by:
I have a SELECT statement which holds a list of times (for adding appointments to a database): e.g. <select name="time" id="time" size="3" multiple> <option value="00:00">00:00</option>...
5
by: cedawe | last post by:
I have two select boxes. When the user picks a value in the first one it completely re-populates the second one. It works fine, but only generates a standard OPTIONS list and I now want to group...
2
by: Eric Tuomikoski | last post by:
Im having trouble with server side ASP with Javascript. I have an ADO recordset that returns a list of Times example: 7:00AM. I then populate the option box with the results. (see below) The...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
2
by: Dan Puskar | last post by:
Hi. I'm new to this forum & to PHP. Just have a little problem. I want to pass the value of a select box to a php script on another page. Here's the code: $output .= "<select name =...
7
by: Garry Jones | last post by:
I need to define an option value as selected. If the user was only going to open this form and send it in I could just write "selected" next to the value I want as default. However, the user can...
3
by: Andy | last post by:
Hi, I'm trying to render tabular data in an HTML document using XSL to transform XML data into an HTML table. Some of the tabular data appears as droplists (implemented by the HTML Select and...
5
by: Bubba | last post by:
I have a dynamic pulldown list (ASP with javascript) that when a user picks a state, the corresponding counties for that state appear in a dynamic second pulldown list. When I submit the form, the...
3
by: jerry101 | last post by:
hi, i've got a form in which the user can fill out consisting of 2 text boxes to enter information in, a drop down box of choices and of course a submit button. when they fill it out, it sends the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.