What is the difference between a function and a stored procedure in PostgreSQL?

Junior PostgreSQL

Answer

Functions return values and can be used in queries, while procedures do not return values and can manage transactions.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice