In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
MySQL TEXT, DATE, SET data types (to) [@ more@] the fields of the MySQL data table must have a data type defined. There are about 25 options, most of which are straightforward, so don't waste your breath. But there are a few that need to be mentioned.
TEXT is not a data type, although it may be said in some books. It should actually be "LONG VARCHAR" or "MEDIUMTEXT".
The format of the DATE data type is YYYY-MM-DD, for example: 1999-12-08. You can easily use the date function to get the current system time in this format:
Date ("Y-m-d")
Also, you can subtract between DATA data types to get the time days of the difference:
$age = ($current_date-$birthdate)
The collection SET is a useful data type, which is somewhat similar to enumerating ENUM, except that SET can hold multiple values while ENUM can hold only one value. Furthermore, the SET type can only have up to 64 predetermined values, while the ENUM type can handle up to 65535 predefined values. What if you need a collection of more than 64 values? At this point, multiple sets need to be defined to solve the problem together.
Wildcard character
There are two types of SQL equivalents: "*" and "%". They are used in different situations. For example, if you want to see all the contents of the database, you can query it like this:
SELECT * FROM dbname WHERE USER_ID LIKE%
Here, both wildcards are used. They mean the same thing. Are used to match any string, but they are used in different contexts. "*" is used to match the field name, and "%" is used to match the field value. Another area that is not easy to notice is that the "%" wildcard needs to be used with the LIKE keyword.
There is also a wildcard, the underscore "_", which represents a different meaning from the above and is used to match any single character.
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.