In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "Mysql can not select non-aggregate column how to do", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Mysql can not select non-aggregate column how to do" this article.
1. Preface
Two buttons have been added to the bottom of the article page to jump directly to the previous and next posts.
As shown in the following figure:
The difficulty in achieving this function is: how does the database select two adjacent records before and after a record?
two。 Database design
The design of my article database is shown in the following figure:
As you can see, the identity of each record is index Id. Because many previous article records have been deleted, Id is not continuous.
If the index value of the current article is 33, you can get two adjacent articles with the following command:
Select * from passage where id in (selectcasewhen SIGN (id-32) > 0 THEN MIN (id) when SIGN (id-32)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.