Mysql and other languages also have many operators, including arithmetic operators, comparison operators, logical operators, bitwise operators, etc. This article introduces the mysql operators, their priorities, and examples to coders, for more
Common mysql operators and usage, mysql Operators
Mysql has four types of operators:
Arithmetic Operators
Comparison Operators
Logical operators
Bitwise operators
Arithmetic Operators
Arithmetic Operators are the most basic operation
4.1. mysql Data type introductionMySQL supports a variety of data types, primarily numeric types, date/time types, and string types.
Numeric data type:Includes integer types TINYINT, SMALLINT, Mediumint, INT, Bifint,Floating point
Security equals operator ()
This operator and = Operator perform the same comparison operation, but can be used to determine the NULL value.
When both operands are NULL, the return value is 1 instead of NULL;
When an operand is NULL, the return
Arithmetic operators in the MySQL databaseArithmetic operators in the MySQL databaseFirst, an overview of the operators:The operator is also an important knowledge body in the MySQL database, which is very useful for manipulating data when executing
Mysql-6-data types and operators, mysql-6-Data Types
1. mysql Data Type
(1) numeric data type: including integer tinyint, smallint, mediumint, int, bigint, float and double Floating Point decimal type.
(2) date/time type: including year, time, date,
Mysql can use operators to perform operations on data in tables, such as age calculation by birth date.
Operators include Arithmetic Operators, comparison operators, logical operators, and bitwise operators.
Arithmetic OperatorsAddition, subtraction,
Overview:
Common operators include:Arithmetic operators,comparison operators,logical operators,Bitwise manipulation Operatorsetc...1. Arithmetic operators:
Supports +–*/and%,For example, when looking for data, use:Select n+1, n+2 from
The operators include four classes: arithmetic, comparison, logical, and bitwise operatorsMySQL can use operators to perform calculations on data in tables, such as age by birth date, etc.The operators include four classes: arithmetic, comparison,
MySQL data types describe numeric types (integer type tinyint,smallint,mediumint,int,bigint; floating point decimal data type float and double, fixed-point decimal type Decimal), Date/Time type (year, Time,date,datetime,timestamp) and String types
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.