pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregor Zych <zych@pool.informatik.rwth-aachen.de>
To: pgsql-sql@postgresql.org
Subject: Probs with arrays
Date: 21 Oct 1998 21:54:40 +0200
Message-ID: <m2r9w1g073.fsf@python.kullen.rwth-aachen.de> (raw)

Hi!
Could some kind soul look into these problems?
 
create table newww (
    telnr    text[]
   );	  

insert into newww values (
  '{{"111 11111"},{"2222 2222"}}'
  );
insert into newww values (
  '{{"33 33333"}}'
  );
insert into newww values (
  '{{"111 11111"}}'
  );

I would like to search for telnr, with certain substr. How do I have
make the query. 

test=> select * from newww where telnr like '{{"%1%"}}';
ERROR:  There is more than one possible operator '~~' for types '_text' and 'unknown'
	You will have to retype this query using an explicit cast

Ciao
	Gregor

-- 
Gregor Zych                               \|/   ___   \|/  Nur die Harten
zych@pool.informatik.rwth-aachen.de        @~./'O o`\.~@   kommen in den
Hier arbeiten 166 Millionen Herz,         /__( \___/ )__\  Garten
96 MB, ein Esel und ein Pinguin              `\__`U_/'



Message-ID: <m2r9w1g073.fsf@python.kullen.rwth-aachen.de>
Permalink:  ../m2r9w1g073.fsf@python.kullen.rwth-aachen.de/
Also on:    postgresql.org/message-id/m2r9w1g073.fsf@python.kullen.rwth-aachen.de

 · 

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: zych@pool.informatik.rwth-aachen.de
  Subject: Re: Probs with arrays
  In-Reply-To: <m2r9w1g073.fsf@python.kullen.rwth-aachen.de>
  References: <m2r9w1g073.fsf@python.kullen.rwth-aachen.de>

* 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