Re: Inserting a tab character

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: Luke Pascoe <luke(dot)p(at)kmg(dot)co(dot)nz>
Cc: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Inserting a tab character
Date: 2003-02-05 07:59:14
Message-ID: 20030205075914.79433.qmail@web80303.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


--- Luke Pascoe <luke(dot)p(at)kmg(dot)co(dot)nz> wrote:
> I have a table which defines various possible file
> delimiters (CHAR(1) NOT
> NULL), for the moment it'll only contain comma and
> tab. Inserting a comma is
> easy, but inserting a tab is proving somewhat more
> difficult.
>
> How do I do it in 'psql'?
>

--> Try using '\t' for tab.
Example :
INSERT INTO table1(f1) values ('\t');

I'm not sure if inserting a TAB character will
cause some side-effects for commands like COPY FROM /
TO since these commands use tab to delimit fields.

Hope that helps,

ludwig

Hope that helps,
ludwig.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Muhammad Shariq Muzaffar 2003-02-05 08:51:34 Lock timeout detection in postgres 7.3.1
Previous Message Matthew Horoschun 2003-02-05 03:54:26 Re: Inserting a tab character