pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Writing the SQL queries inside Functions and operators
2+ messages / 2 participants
[nested] [flat]

* Writing the SQL queries inside Functions and operators
@ 2003-10-21 07:34 Dharan <dsankaran@ivesia.com>
  2003-10-21 18:59 ` Re: Writing the SQL queries inside Functions and operators Richard Huxton <dev@archonet.com>
  0 siblings, 1 reply; 2+ messages in thread

From: dsankaran@ivesia.com @ 2003-10-21 07:34 UTC (permalink / raw)
  To: pgsql-sql

Hi Friends,


What is the use of user defined operators, as functions also perform
the same job as an operator


thanks in advance



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Writing the SQL queries inside Functions and operators
  2003-10-21 07:34 Writing the SQL queries inside Functions and operators Dharan <dsankaran@ivesia.com>
@ 2003-10-21 18:59 ` Richard Huxton <dev@archonet.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Richard Huxton @ 2003-10-21 18:59 UTC (permalink / raw)
  To: dsankaran@ivesia.com; pgsql-sql

On Tuesday 21 October 2003 08:34, Dharan wrote:
> Hi Friends,
>
>
> What is the use of user defined operators, as functions also perform
> the same job as an operator

Easier to write. Compare:
  'hello ' || ' there ' || 'everyone'
with
  text_concat('hello', text_concat('there', text_concat('everyone') ) )

-- 
  Richard Huxton
  Archonet Ltd



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-21 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-21 07:34 Writing the SQL queries inside Functions and operators Dharan <dsankaran@ivesia.com>
2003-10-21 18:59 ` Richard Huxton <dev@archonet.com>

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