01- Data Types
MySQL supports multiple data types, the main types of numeric, date / time types, and strings.
1.1 integer types
Floating-point and fixed-point type 1.2 Type
Single precision floating point type (FLOAT) and double precision floating point type (DOUBLE).
1.3 Date and Time Types
# Create a table the CREATE TABLE tmp3 (the y-YEAR); # insert data INSERT INTO tmp3 values ( ' 2010 ' ); # delete the data in the table DELECT FROM tmp3;
1.4 type a text string
Common operator 02-
2.1 Arithmetic Operators
Plus +, subtraction -, multiplication *, division /, remainder%
2.2 Comparison Operators
Greater than> Less than <, = equal to, greater than or equal to> = Less than or equal <=, not equal! =
IN、BETWEEN AND、IS NULL、GREATEST、LEAST、LIKE、REGEEXP等。
2.3 Logical Operators
Non logic!, Logic AND &&, || logical OR or a logical exclusive OR XOR
2.4 operator operators
& Position and, bit, or |, non ~ bit, bit XOR ^, << left, right >>