In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the mysql: = and = what are the differences, have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The difference between = and =
=
It is only in set and update that it is the same as: =, the function of assignment is equal to that of others. In view of this, when implementing a line number with a variable, you must use: =
: =
The role of constant assignment is not only in set and update, but also in select.
If you understand the difference between = and: =, then you will understand the following phenomenon.
@ num:=@num+1,:= is the function of assignment, so first execute @ num+1, and then assign to @ num, so the function of line number can be realized correctly.
@ num=@num+1, at this time = is equal to the effect, @ num is not equal to @ num+1, so 0 is always returned. If changed to @ num=@num, 1 is always returned. In the mysql database, 1 is used for true and 0 for false.
Thank you for reading this article carefully. I hope the article "what is the difference between = and = in mysql" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.