I have a small training database: sql_tutorial. It works fine but the spacing
between the output lines is too much. This is the way it looks when I copy
and paste from the Konsole to this email:
sql_tutorial=> SELECT prod_name FROM Products;
prod_name
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 inch teddy bear
12 inch teddy bear
18 inch teddy bear
This is the way it looks on the Konsole:
sql_tutorial=> SELECT prod_name FROM Products;
prod_name
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
------------------
8 inch teddy bear
12 inch teddy bear
18 inch teddy bear
How can I change the Konsole output to look like the first example?
Thanks,
Jerome
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend 6 1348
The spacing in Konsole is directly related to the wrapping that it's
doing based on the size of the prod_name field (I.e., length in terms
of characters).
You can alter the format settings of psql. See: http://www.postgresql.org/docs/7.4/static/app-psql.html
-tfo
On Sep 14, 2004, at 4:05 PM, Jerome Lyles wrote: I have a small training database: sql_tutorial. It works fine but the spacing between the output lines is too much. This is the way it looks when I copy and paste from the Konsole to this email:
sql_tutorial=> SELECT prod_name FROM Products; prod_name ----------------------------------------------------------------------- ----------------------------------------------------------------------- ----------------------------------------------------------------------- -------------------------------------------- 8 inch teddy bear 12 inch teddy bear 18 inch teddy bear
This is the way it looks on the Konsole:
sql_tutorial=> SELECT prod_name FROM Products;
prod_name ----------------------------------------------------------------------- --------------- ----------------------------------------------------------------------- --------------- ----------------------------------------------------------------------- --------------- ------------------ 8 inch teddy bear
12 inch teddy bear
18 inch teddy bear
How can I change the Konsole output to look like the first example? Thanks, Jerome
---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
On Tue, Sep 14, 2004 at 11:05:46AM -1000, Jerome Lyles wrote: I have a small training database: sql_tutorial. It works fine but the spacing between the output lines is too much. This is the way it looks when I copy and paste from the Konsole to this email:
sql_tutorial=> SELECT prod_name FROM Products;
Is prod_name a char(n) for some large n?
Cheers,
D prod_name ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8 inch teddy bear 12 inch teddy bear 18 inch teddy bear
This is the way it looks on the Konsole:
sql_tutorial=> SELECT prod_name FROM Products;
prod_name -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- ------------------ 8 inch teddy bear
12 inch teddy bear
18 inch teddy bear
How can I change the Konsole output to look like the first example? Thanks, Jerome
---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend
--
David Fetter da***@fetter.or g http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778
Remember to vote!
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
On Tuesday 14 September 2004 11:27 am, David Fetter wrote: On Tue, Sep 14, 2004 at 11:05:46AM -1000, Jerome Lyles wrote: I have a small training database: sql_tutorial. It works fine but the spacing between the output lines is too much. This is the way it looks when I copy and paste from the Konsole to this email:
sql_tutorial=> SELECT prod_name FROM Products;
Is prod_name a char(n) for some large n?
Cheers, D
char(255)
Jerome
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly
On Tue, Sep 14, 2004 at 06:37:40PM -1000, Jerome Lyles wrote: On Tuesday 14 September 2004 11:27 am, David Fetter wrote: On Tue, Sep 14, 2004 at 11:05:46AM -1000, Jerome Lyles wrote: I have a small training database: sql_tutorial. It works fine but the spacing between the output lines is too much. This is the way it looks when I copy and paste from the Konsole to this email:
sql_tutorial=> SELECT prod_name FROM Products;
Is prod_name a char(n) for some large n?
Cheers, D char(255)
Well, Don't Do That, Then. TEXT is a great type for storing text.
VARCHAR(n) is a TEXT with a maximum length constraint, and CHAR(n)
(fixed length) is pretty nearly obsolete.
Cheers,
D
--
David Fetter da***@fetter.or g http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778
Remember to vote!
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
On Wednesday 15 September 2004 05:24 am, David Fetter wrote: On Tue, Sep 14, 2004 at 06:37:40PM -1000, Jerome Lyles wrote: On Tuesday 14 September 2004 11:27 am, David Fetter wrote: On Tue, Sep 14, 2004 at 11:05:46AM -1000, Jerome Lyles wrote: > I have a small training database: sql_tutorial. It works fine > but the spacing between the output lines is too much. This is > the way it looks when I copy and paste from the Konsole to this > email: > > sql_tutorial=> SELECT prod_name FROM Products;
Is prod_name a char(n) for some large n?
Cheers, D
char(255)
Well, Don't Do That, Then. TEXT is a great type for storing text. VARCHAR(n) is a TEXT with a maximum length constraint, and CHAR(n) (fixed length) is pretty nearly obsolete.
Cheers, D
This is amazing. Im using a book called 'Teach Yourself SQL in 10 minutes'
with a 2004 copyright and this is the second example of obsolete TEXT type
used in the examples so far.
Jerome
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html su******@hawaii .rr.com (Jerome Lyles) wrote in
news:2004091411 05.46091.su**** **@hawaii.rr.co m: I have a small training database: sql_tutorial. It works fine but the
spacing between the output lines is too much. This is the way it looks when I
copy and paste from the Konsole to this email:
the simplest is
SELECT prod_name::text FROM products;
(will cast the char(255) column to text and in the process removes all
trailing spaces.)
or use trim function to remove trailing spaces.
--
Rolf This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rick DeBay |
last post by:
I'm trying to create a layout table, where the spacing between rows varies.
I've tried using setting margin-top and border-top for the rows I wan't spaced
down from the one above, and I've also tried setting it on all of the cells of
that row.
This hasn't worked, so I was wondering if anyone knew how it could be done.
Thanks, Rick DeBay
|
by: fleemo17 |
last post by:
Is there a way to tweak the spacing of lines of text (or leading)
*specifically* in IE6? I've created a "Quick Search" box in my layout
which renders pretty consistently in all the browsers I've tested it
on, except in IE6 for the PC. The spacing is completely inconsistent
with all the other browsers. (See
http://www.sunriveronline.org/misc/clrn ) Is there a way to include a
few lines of code in my CSS file that will adjust IE6's...
|
by: Sebastien B. |
last post by:
I'm wondering if it's at all possible to have spacing between a table's
cells, and only between the cells, not between the outter cells and the
table's border. See end of message for an example (make sure to view this in
fixed width font).
I've played around with different things, such as margin-right, etc. but I
didn't get any results. Would this be even possible. I would have thought
the specs (either HTML or CSS) would have allowed...
|
by: metoikos |
last post by:
I've scoured the web (clumsily, I'm sure) for information on the
difficulties I am having, checked my markup in validators, and had a
friend with more CSS clue look over it, but I haven't had any luck.
I'll detail my difficulties here and hope for help. I will note that
I'm using headings to delineate different sections of my message for
easier reading.
As you can see from the subject, my problems are related to spacing;
one of them is...
|
by: phil-news-nospam |
last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing
_between_ the columns (gutter) _without_ increasing the spacing between
those columns and the table itself. Is there a way to do that in CSS
without having to code in extra dummy columns in HTML to create gutters?
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ ...
| |
by: WuJianWei |
last post by:
If you type a string:
"It's good."
there's one space between the two words.
but how can i adjust the string to two spaces or more.
"it's good."
|
by: harishram007 |
last post by:
Sorry for the inconvienience but i am expecting this pattern the pattern is in the attachment....i am just pasted my code and want alterations....please help
but i am ending up wid something like
1
1 1
1 2 1
1 3 3 1
with the following code
#include <iostream.h>
|
by: replyrpatil |
last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in)
Problem Recreation : Download attached RAR file (http://download.yousendit.com/627919383AFAA7E3 )
Steps 1) Install RTF2 program created by Lebans
2) Install ZAN Image Printer (Virtual Printer)
3) Create Custom Paper Size ----...
|
by: =?ISO-8859-1?B?QW5kcukgSORuc2Vs?= |
last post by:
Hi,
I'm experiencing very bad character spacing / anti-aliasing with a PHP
installation. I compared it to another installation where it works.
I'm using the following test code:
$ih = imagecreatetruecolor(200,100);
$ch_white = ImageColorAllocate($ih, 255,255,255);
imagettftext($ih,8,0,10,21,$ch_white,'arialbd.ttf','REFERENZENXXX');
header('Content-Type: image/gif');
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |