473,396 Members | 1,864 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,396 software developers and data experts.

select statement -format longer record result set!! HELP PLEASE!!

I have a select statement that has more than 20 fields and result set
record length is more than 300 characters for each row. How do I modify
the sql such that the output is formatted for single page view, and
include new lines after the fields, as necessary. Certain fields should
be on its own line.

Thanks for the help.

Nov 12 '05 #1
2 1440
"select col1 || chr(10) || col2 || chr(10) || col3 from table1 "

would return

col1
col2
col3

for each row selected.

Nov 12 '05 #2
Thanks, I appreciate your timely help.

Nov 12 '05 #3

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

Similar topics

3
by: Margo | last post by:
Hi there I am fairly new to php & MySQL. I have been trying to set up a query and limit the result 12 records per page - 2 columns by 6 rows. Each record contains various fields. I have been...
0
by: Ronald van Raaphorst | last post by:
Hi all, Is there a way to find the position of a certain record (id) in a result set, based on a (autonumber id)? Example: My table has 2 fields: id & name, and the contents = id name 1 ...
1
by: avinash | last post by:
hi myself avi i am developing one appliacaion in which i am using vb 6 as front end, adodb as database library and sql sever 7 as backend. i want to update one table for which i required data from...
18
by: war_wheelan | last post by:
I am very new to Transact-SQL programming and don't have a programming background and was hoping that someone could point me in the right direction. I have a SELECT statement SELECT FIXID,...
6
by: David | last post by:
I am using ADO to run some SQL statements in Access. First, I run query to create a table using SELECT . . . INTO Table A. Then, I run a query to SELECT . . . FROM Table A to get some data and...
3
by: Peter | last post by:
Hello all, I have the following t-sql batch: create procedure stp_test ( @p_date1 as datetime = null, @p_date2 as datetime = null )
10
by: elliottjeff | last post by:
I was wondering if there is a way to create a stored procedure that I can DECLARE Variables then set these variables using a select statment -- up to here works. then use a different statement...
1
by: write2ashokkumar | last post by:
hi.... i am using mysql 5.0.22 version. i have the table xxx with 2 lakhs record. if i select all the records...it takes the long time to give the result set. is there any way to fine tune...
5
rsrinivasan
by: rsrinivasan | last post by:
Hi all, When i run below statement, i get some result set. But i want to store the results sets in some temp table. How can i store it? DBCC SHOWCONTIG ('table_name') WITH TABLERESULTS ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.