If all mysql operations are encapsulated into a stored procedure, OK-php Tutorial

Source: Internet
Author: User
If mysql operations are encapsulated into stored procedures, can you create a website? if you encapsulate all operations performed on the database into stored procedures, isn't it easier to maintain it in the future than simply writing SQL statements in the program? share it: If mysql operations are encapsulated into a stored procedure, is it good?
Excuse me
If a website encapsulates all database operations into a stored procedure,
Is it easier for future maintenance than simply writing SQL statements in the program?

Share:


------ Solution --------------------
Stored procedures, as long as the database does not have problems, basically there will be no problems.
That is to say, in terms of security, the system that uses stored procedures is more stable.

We also need to know that the biggest problem with the stored procedure is poor portability. if the landlord ignores this aspect, we can consider using


------ Solution --------------------
In fact, we don't need to encapsulate a common PHP file for database operations.

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.