Re: Writing the SQL queries inside Functions and operators

From: Richard Huxton <dev(at)archonet(dot)com>
To: dsankaran(at)ivesia(dot)com (Dharan), pgsql-sql(at)postgresql(dot)org
Subject: Re: Writing the SQL queries inside Functions and operators
Date: 2003-10-21 18:59:18
Message-ID: 200310211959.18560.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-10-21 19:02:04 Re: [SQL] Alias-Error
Previous Message Richard Huxton 2003-10-21 18:57:17 Re: how to create a multi columns return function ?