pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brice Ruth <brice@webprojkt.com>
Cc: Michael Fork <mfork@toledolink.com>
Cc: Ian Harding <iharding@pakrat.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Date: Wed, 07 Feb 2001 10:48:21 -0500
Message-ID: <28366.981560901@sss.pgh.pa.us> (raw)
In-Reply-To: <3A816921.FEB47B80@webprojkt.com>
References: <Pine.BSI.4.21.0102070915290.197-100000@glass.toledolink.com>
	<3A816921.FEB47B80@webprojkt.com>

Brice Ruth <brice@webprojkt.com> writes:
> SELECT length(monographid) FROM tblpemdruglink WHERE drugid='DG-5039';
> I get 5 returned to me, even though the string is only 4 ('2008'). 

Okay, so you've got some invisible character in there, but not a space
(else the trim() woulda got rid of it).  Tab maybe?  Might want to go
back and examine your original data file more carefully, with an editor
that will show you control characters and such.

			regards, tom lane



view thread (29+ messages)  latest in thread

Message-ID: <28366.981560901@sss.pgh.pa.us>
Permalink:  ../28366.981560901@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28366.981560901@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, brice@webprojkt.com, mfork@toledolink.com, iharding@pakrat.com, pgsql-general@postgresql.org
  Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
  In-Reply-To: <28366.981560901@sss.pgh.pa.us>
  References: <Pine.BSI.4.21.0102070915290.197-100000@glass.toledolink.com> <3A816921.FEB47B80@webprojkt.com> <28366.981560901@sss.pgh.pa.us>

* 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