Using stored procedure to realize the monthly sales report of the Mall

Source: Internet
Author: User
Tags sql injection
Mall statistics monthly sales are the mall should have a function, this article using the SP to achieve this, you can see how simple it is. At the same time in the statistical month should be the year also statistics, to avoid the same month of different years.

To write ASP friends a little hint: read a lot of friends write code, frequent switching between HTML and ASP, so write code has two disadvantages: first, the implementation of the program is inefficient, followed by the reading code is inconvenient, my practice is to use as much as possible Response.Write, as shown in the following code.

As far as possible to separate ADO calls and ASP pages, so as to avoid the malicious SQL injection, on the other hand, confidential data, but also make the code clearly readable.

As we all know, ASP's module function is very poor, so as developer to optimize the program structure and code.



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.