This document summarizes key differences between SQL functions and stored procedures. Functions must use parentheses, return keywords, and return values, while stored procedures do not specify select or print. Functions can only return one scalar or table value, cannot perform DDL operations, and cannot nest procedures or use non-deterministic functions inside the function code. Stored procedures require begin and end blocks for multiple statements and do not allow specifying parameter order on execution.
This document summarizes key differences between SQL functions and stored procedures. Functions must use parentheses, return keywords, and return values, while stored procedures do not specify select or print. Functions can only return one scalar or table value, cannot perform DDL operations, and cannot nest procedures or use non-deterministic functions inside the function code. Stored procedures require begin and end blocks for multiple statements and do not allow specifying parameter order on execution.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online from Scribd
This document summarizes key differences between SQL functions and stored procedures. Functions must use parentheses, return keywords, and return values, while stored procedures do not specify select or print. Functions can only return one scalar or table value, cannot perform DDL operations, and cannot nest procedures or use non-deterministic functions inside the function code. Stored procedures require begin and end blocks for multiple statements and do not allow specifying parameter order on execution.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online from Scribd