Fixed ad bit, refresh ad bit, normal bit (seek optimization)

Source: Internet
Author: User
Select  cars.*, from  ((SELECT * from Phpcars_cars   where fidex=1 order by Listorder limit  3) #固定广 The Position union (SELECT * from Phpcars_cars   where top>1 the order by top limit  5) #刷新广告位union (SELECT * from phpcars_cars< C6/>where top=1  ORDER BY p_addtime Desc)) As cars left JOIN Phpcars_member as member on = Cars.uid  #正常位 Reset

Both 3 and 5 are variables, defined in the background, and optimized.
Fixed ad bits are used to fix several positions.
The refresh ad bit is used to constantly refresh the user.

Reply to discussion (solution)

Less data, no problem at the moment ....

To personal access points.

Does your limit clause work as expected?

No problems were found.

Does your limit clause work as expected?

  • 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: 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.