Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Stored procedure
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Comparison with functions == * A function is a subprogram written to perform certain computations. * A scalar function returns only one value (or NULL), whereas a table function returns a (relational) table comprising zero or more rows, each row with one or more columns. * Functions must return a value (using the <code>RETURN</code> keyword), but for stored procedures this is not mandatory. * Stored procedures can use <code>RETURN</code> keyword but with no value being passed. * Functions could be used in <code>SELECT</code> statements, provided they do no data manipulation. However, procedures cannot be included in <code>SELECT</code> statements. * A stored procedure can return multiple values using the <code>OUT</code> parameter, or return no value. * A stored procedure saves the query compiling time. * A stored procedure is a [[database object]]. * A stored procedure is a material object.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)