Database stored procedures, triggers, connections

Source: Internet
Author: User

stored procedure : A stored procedure is a compiled SQL statement.
1. Stored procedure because the SQL statement has been pre-programmed Yi, it runs faster.
2. The security and integrity of the data can be guaranteed. Stored procedures enable users who do not have permissions to access the database indirectly under control, thus guaranteeing the security of the data. Stored procedures allow related actions to occur together to maintain the integrity of the database.
3. You can reduce the amount of traffic on your network. The stored procedure is primarily run on the server, reducing the pressure on the client.
4: Stored procedures can accept parameters, output parameters, return single or multiple result sets, and return values. You can return the cause of the error to the program
5: Stored procedures can contain program flow, logic, and queries to the database. Data logic can also be encapsulated and hidden by entities.


Trigger : When the trigger condition is met, the trigger body of the trigger is automatically executed by the system.
Trigger time: Before,after. Trigger event: There are insert,update,delete three kinds. Trigger type: Row trigger, statement trigger

INNER JOIN, outer join difference?
An inner connection is a guarantee that all rows in two tables meet the conditions of the connection, but not the outer connection.
In an outer join, certain columns of dissatisfaction are also displayed, that is, only the rows of one of the tables are restricted, not the rows of the other table. Left-connected, right-connected, fully connected, three kinds of

Database stored procedures, triggers, connections

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.