dbTalk Databases Forums  

Procedures vs Functions

comp.databases.postgresql comp.databases.postgresql


Discuss Procedures vs Functions in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Corrado Alesso
 
Posts: n/a

Default Procedures vs Functions - 03-20-2007 , 02:28 AM






Hi, I know the difference beetwen Proc and Func, the former shoud not return a
value and the latter should. But it seems that within Postgres they have
different meanings. Could someone explain this to me?

Thank you very much

Corrado

Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Procedures vs Functions - 03-20-2007 , 10:11 AM






Corrado Alesso <coPUNTOalesso (AT) fastwebnet (DOT) it> wrote:
Quote:
Hi, I know the difference beetwen Proc and Func, the former shoud not
return a value and the latter should. But it seems that within Postgres
they have different meanings. Could someone explain this to me?
It is simple: PostgreSQL does not have procedures as specified by the
SQL standard.

You can, however, declare a function of return type void.

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Corrado Alesso
 
Posts: n/a

Default Re: Procedures vs Functions - 03-27-2007 , 03:53 PM



Laurenz Albe ha scritto:
Quote:
Corrado Alesso <coPUNTOalesso (AT) fastwebnet (DOT) it> wrote:
Hi, I know the difference beetwen Proc and Func, the former shoud not
return a value and the latter should. But it seems that within Postgres
they have different meanings. Could someone explain this to me?

It is simple: PostgreSQL does not have procedures as specified by the
SQL standard.

You can, however, declare a function of return type void.

Yours,
Laurenz Albe
Thank you, it's clear now.

Corrado


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.