pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: Luke Pascoe <luke.p@kmg.co.nz>
Cc: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Inserting a tab character
Date: Tue, 4 Feb 2003 23:59:14 -0800 (PST)
Message-ID: <20030205075914.79433.qmail@web80303.mail.yahoo.com> (raw)
In-Reply-To: <00d301c2ccc8$24c6f7a0$3200000a@K2>


--- Luke Pascoe <luke.p@kmg.co.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



view thread (4+ messages)  latest in thread

Message-ID: <20030205075914.79433.qmail@web80303.mail.yahoo.com>
Permalink:  ../20030205075914.79433.qmail@web80303.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030205075914.79433.qmail@web80303.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lud_nowhere_man@yahoo.com, luke.p@kmg.co.nz
  Subject: Re: Inserting a tab character
  In-Reply-To: <20030205075914.79433.qmail@web80303.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox