-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add postgresql functions concept #5220
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hakdo99 ,
The entry is nicely written, and I have suggested a few changes. Please make them asap.
Thanks,
Savi
- 'PostgreSQL' | ||
- 'Functions' | ||
CatalogContent: | ||
- 'learn-postgresql' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 'learn-postgresql' | |
- 'learn-postgresql' |
Include only those course paths that are already available in the catalog-content.md file. You can add one if you want it to get included in the PR. Here learn-postgresql
is not available in the catalog-content file so it makes it invalid to get included in PR.
- 'paths/analyze-data-with-sql' | ||
--- | ||
|
||
**`Functions`** in PostgreSQL, also known as Stored Procedures, are sets of SQL and procedural commands stored on the database server. They enable us to perform executions within the database within a single function that usually require several commands and round trips. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**`Functions`** in PostgreSQL, also known as Stored Procedures, are sets of SQL and procedural commands stored on the database server. They enable us to perform executions within the database within a single function that usually require several commands and round trips. | |
**`Functions`** in PostgreSQL, also known as Stored Procedures, are sets of SQL and procedural commands stored on the database server. They enable us to perform executions within the database within a single function that usually requires several commands and round trips. |
CREATE [OR REPLACE] FUNCTION function_name (parameters) | ||
RETURNS return_type AS $$ | ||
DECLARE | ||
< variable_declaration > | ||
[...] | ||
BEGIN | ||
< function_body > | ||
[...] | ||
RETURN { variable_name | value } | ||
END; | ||
$$ LANGUAGE lang_name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE [OR REPLACE] FUNCTION function_name (parameters) | |
RETURNS return_type AS $$ | |
DECLARE | |
< variable_declaration > | |
[...] | |
BEGIN | |
< function_body > | |
[...] | |
RETURN { variable_name | value } | |
END; | |
$$ LANGUAGE lang_name; | |
CREATE [OR REPLACE] FUNCTION function_name (parameters) | |
RETURNS return_type AS $$ | |
DECLARE | |
< variable_declaration > | |
[...] | |
BEGIN | |
< function_body > | |
[...] | |
RETURN { variable_name | value } ; | |
END; | |
$$ LANGUAGE lang_name; |
Added semicolon at line number 32 for correct syntax.
Description
Add a concept entry about PostgreSQL functions. The new file is functions.md.
Issue Solved
Closes #4589Type of Change
Checklist
main
branch.Issues Solved
section.