Re: new line in psotgres

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: new line in psotgres
Дата
Msg-id 1186424381.27681.20.camel@dogma.ljc.laika.com
обсуждение исходный текст
Ответ на new line in psotgres  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Ответы Re: new line in psotgres
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: new line in psotgres
Следующее
От: "Keaton Adams"
Дата:
Сообщение: Re: Template zero xid issue