pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Mazurek <M.Mazurek@poznan.multinet.pl>
To: pgsql-sql@postgresql.org
Subject: select with function per row
Date: Mon, 30 Oct 2000 10:02:13 +0100
Message-ID: <20001030100213.G32288@poznan.mtl.pl> (raw)

Hi,
I have a table with FQDN. I'm trying to take from it the second part which
desribed a city. Query isn't too clear but with what is important that
whole substr was counted once and applied to every row. Can I (how?) force
executor to run this substr on every row of my table?

mtldb=# select substr(substr(s.nazwa,strpos(s.nazwa,'a.')+2),1,
				textlen(s.nazwa)-strpos(s.nazwa,+'.m'))
					from serwery_old s;
 substr
--------
 poznan
 mtl.pl
 ka.kie

tia
maz

Marcin Mazurek

--  
Kierownik DziaƂu Systemowego
MULTINET SA o/Poznan
http://www.multinet.pl/



Message-ID: <20001030100213.G32288@poznan.mtl.pl>
Permalink:  ../20001030100213.G32288@poznan.mtl.pl/
Also on:    postgresql.org/message-id/20001030100213.G32288@poznan.mtl.pl

 · 

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: M.Mazurek@poznan.multinet.pl
  Subject: Re: select with function per row
  In-Reply-To: <20001030100213.G32288@poznan.mtl.pl>
  References: <20001030100213.G32288@poznan.mtl.pl>

* 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