Anonymous Asked in Cars &Transportation · 2 weeks ago

Why do we create stored procedure?

A stored procedure provides an important layer of security between the user interface and the database. It supports security through data access controls because end users may enter or change data, but do not write procedures.


Why we use stored procedure instead of query?

A stored procedure is invoked as a function call instead of a SQL query. Stored procedures can have parameters for both passing values into the procedure and returning values from the call. Results can be returned as a result set, or as an OUT parameter cursor.

What is a stored procedure and why is it particularly useful give an example?

A stored procedure is a named block of PL/SQL and SQL statements. One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions. For example, you can create a stored procedure to represent a product sale, a credit update, or the addition of a new customer.

Related Questions

Relevance
Write us your question, the answer will be received in 24 hours