pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Johannsen <cjohan@home.com>
To: pgsql-sql@hub.org
Subject: Semantics of LIKE
Date: Mon, 01 Mar 1999 22:02:43 -0800
Message-ID: <36DB7F03.E3750759@home.com> (raw)
References: <199903020400.XAA92240@hub.org>

How does the LIKE predicate operator treat trailing spaces
in a CHAR column.  For example,
create table test(c1 char(5));
insert into test('abc');
select c1 from test where c1 like 'abc%';
should retrieve one row.
select c1 from test where c1 like 'abc';
should retrieve zero rows.
select c1 from test where c1 like 'abc  ';
should retrieve one row.

Correct?  Does this conform exactly to the SQL 92 spec?



Message-ID: <36DB7F03.E3750759@home.com>
Permalink:  ../36DB7F03.E3750759@home.com/
Also on:    postgresql.org/message-id/36DB7F03.E3750759@home.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 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: cjohan@home.com, pgsql-sql@hub.org
  Subject: Re: Semantics of LIKE
  In-Reply-To: <36DB7F03.E3750759@home.com>
  References: <199903020400.XAA92240@hub.org> <36DB7F03.E3750759@home.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