Methods declaration

From: Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Methods declaration
Date: 2009-03-17 06:39:48
Message-ID: 5eca56860903162339x50bb8bc1v76aab7157e9f57f8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,
I've just started working with ordbms. I'm searching for differences between
postgresql and oracle...

Btw, I've found it's possible to declare a method for a specific type in
oracle...so if I create a type MyType, I can associate it also a method
MyMethod....using the costructors:

CREATE TYPE MyType AS OBJECT
(
...
...
...
MEMBER FUNCTION MyMethod(parameterName parameterType)
RETURN ReturnType);

Is it possible to do the same with postgreSql? I've found the CREATE
FUNCTION command...but it seems it creates global functions, not associated
to a particular type...

Thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message sathiya psql 2009-03-17 11:02:09 diff b/w varchar(N) & text
Previous Message Pavel Stehule 2009-03-17 05:27:57 Re: Exclude fields from SELECT command