Methods declaration

Поиск
Список
Период
Сортировка
От Gianvito Pio
Тема Methods declaration
Дата
Msg-id 5eca56860903162339x50bb8bc1v76aab7157e9f57f8@mail.gmail.com
обсуждение исходный текст
Ответы Re: Methods declaration  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hello,<br /> I've just started working with ordbms. I'm searching for differences between postgresql and oracle...<br
/><br/> Btw, I've found it's possible to declare a method for a specific type in oracle...so if I create a type MyType,
Ican associate it also a method MyMethod....using the costructors:<br /><br /> CREATE TYPE MyType AS OBJECT<br />( <br
/>...<br/>...<br />...<br />MEMBER FUNCTION MyMethod(parameterName  parameterType)<br />RETURN ReturnType);<br /><br />
Isit 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...<br /><br /> Thanks  

В списке pgsql-sql по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Exclude fields from SELECT command
Следующее
От: sathiya psql
Дата:
Сообщение: diff b/w varchar(N) & text