pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgml@gmx.de <pgml@gmx.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: SQL Question about like
Date: Mon, 10 Aug 2020 09:51:29 -0700
Message-ID: <42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.com> (raw)
In-Reply-To: <00d20cc2-0c97-8ce7-768a-a2c8bc396d19@gmx.de>
References: <00d20cc2-0c97-8ce7-768a-a2c8bc396d19@gmx.de>

On 8/10/20 9:37 AM, pgml@gmx.de wrote:
> Hello,
> 
> my SQL question is, why psql doesn't return the record?
> 
> create table lll (text char(100));
> insert into lll (text) values ('10% - Ersthelfer');
> 
> select * from lll where text like '10% - Ersthelfer';
> 
> Other databases (Maria, SQL Server, YARD) do this.
> What can I do in pg, to get the result?

A little documentation goes a long way:) :

https://www.postgresql.org/docs/12/functions-matching.html#FUNCTIONS-LIKE
> 
> Thank you and best regards, Martin
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.com>
Permalink:  ../42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.com/
Also on:    postgresql.org/message-id/42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, pgml@gmx.de
  Subject: Re: SQL Question about like
  In-Reply-To: <42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.com>
  References: <00d20cc2-0c97-8ce7-768a-a2c8bc396d19@gmx.de> <42775a6c-d4d9-26ea-39d9-22f2c734c9ac@aklaver.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