Re: SELECT in VCHAR column for strings with TAB

From: Ray O'Donnell <ray(at)rodonnell(dot)ie>
To: Matthias Apitz <guru(at)unixarea(dot)de>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: SELECT in VCHAR column for strings with TAB
Date: 2021-06-10 13:39:55
Message-ID: 741c9495-7026-f4cc-00fe-493b7b2fc08e@rodonnell.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/06/2021 14:30, Matthias Apitz wrote:
>
> Hello,
>
> I want to search in a VCHAR column for a string with two TAB at the end.
> I tried some things w/o any luck, like:
>
> select * from acq_vardata where name=concat('Test202112', 9, 9);
> select * from acq_vardata where name=concat('Test202112', '\t\t');

Maybe use a regular expression?

https://www.postgresql.org/docs/13/functions-matching.html

Ray.

--
Raymond O'Donnell // Galway // Ireland
ray(at)rodonnell(dot)ie

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-06-10 13:50:02 Re: SELECT in VCHAR column for strings with TAB
Previous Message Tom Lane 2021-06-10 13:32:16 Re: order by <tablename>