1. Role of OraclePackage: It can simplify application design, improve application performance, implement information hiding, and reload subprograms. 2. function, package, and pack in ORACLE
1. Role of Oracle Package: It can simplify application design, improve application performance, implement information hiding, and reload subprograms. 2. function, package, and pack in ORACLE
1. Role of Oracle Package:
It can simplify application design, improve application performance, hide information, and overload subprograms.
2. Differences between functions, packages, package bodies, and procedure in ORACLE are the same:
Function has a return value and a parameter. procedure has no return value and a parameter. package and package body exist at the same time, just like. h and. cpp file. If you want to call it externally, declare it in the package. If you want to call it in the package, you only need to write it in the body. Package can include function, procedure
3. In sqlserver, you can directly write a stored procedure and call it. But in oracle, I have read a lot of information saying that to call a stored procedure, you must put the stored procedure into the package before it can be called? Is that true?
No. The process can also be written and called separately.
4. What is the difference between packages and package bodies?
Only the methods are defined in packages, and specific implementations are involved in bodies.
5. I wrote a stored procedure in the Stored Procedure procedures. Is it included in the package name? You can still write the package name directly in the package: Just write the stored procedure you want to write directly into the package?
No
6. Which package should I write? Packages or package bodies
The two are integrated and must exist at the same time.
Both the package body and package must be manually written.
You need to create a package (that is, the definition of the package) before creating the body. To add a package or modify the number of input parameters in a package, you must change the package and then the body.