How to search for information based on qualification criteria

Source: Internet
Author: User
It turns out that all the rows in the database are displayed
There are several options in the drop-down box, I choose Beijing, then click Submit, on the same page will be all places are Beijing's row show, ask how to write
How to write if there are several qualifications at the same time.
If the option is empty, it will not be added to the qualifying conditions.


Reply to discussion (solution)

The front end takes the data such as location = ' Beijing ' Post in the past, the backend receives the data, adds the Where condition on the original SQL statement, the condition is the place = ' Beijing ' and so on.

By default, the values of filter conditions such as locations are passed empty
Get all the data in the background

If location = ' Beijing ', SQL takes Beijing related data, other conditions and so on, long term combination

By default, the values of filter conditions such as locations are passed empty
Get all the data in the background

If location = ' Beijing ', SQL takes Beijing related data, other conditions and so on, long term combination



What data will not be displayed if the transfer is just started?

The front end takes the data such as location = ' Beijing ' Post in the past, the backend receives the data, adds the Where condition on the original SQL statement, the condition is the place = ' Beijing ' and so on.


What if you want to work on the same page?
  • Related Article

    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.