Re: new line in psotgres

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Jasbinder Singh Bali <jsbali(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: new line in psotgres
Date: 2007-08-06 18:19:41
Message-ID: 1186424381.27681.20.camel@dogma.ljc.laika.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2007-08-06 at 13:28 -0400, Jasbinder Singh Bali wrote:
> Hi,
> Can anyone please tell me what is the character for a new line in
> postgres ?
> I mean how does a new line get stored in postgres ?
> Is it "\n" or "\\n" or something else ?
>

You can just put the newline directly in the SQL:

INSERT INTO mytable(myattr) VALUES('first line
second line
third line');

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keaton Adams 2007-08-06 18:20:45 Re: Template zero xid issue
Previous Message Michael Glaesemann 2007-08-06 18:09:32 Re: new line in psotgres