Re: Wrapping text

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Wim <wdh(at)belbone(dot)be>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Wrapping text
Date: 2003-02-24 18:21:07
Message-ID: 200302241021.07619.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Wim,

> I try to store multiple lines in a text field of my database ( a sample
> f a logfile).
> How do I do this? Now I can only write everything on one line...

A postgres text field will accept line breaks with no problem:

INSERT INTO some_table ( id, name, comments )
VALUES ( 5, 'Truth', 'Truth needs no favor for her sword
Upon the field with Error
Nor are her converts ever made
By threat of harm or terror' );

However, depending on what tool/langauge you are using to interface with
postgresql, this may be more or less difficult.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Chad Thompson 2003-02-24 18:28:14 pq_flush: send() failed: Broken pipe
Previous Message Susan Hoddinott 2003-02-24 15:04:04 Database user with privelege to create additional users