时间:2021-07-01 10:21:17 帮助过:11人阅读
mysql> CREATE TABLE tmp14 ( num INT ) ;
mysql> INSERT INTO tmp14 VALUE(64);
mysql> SELECT num, num+10, num-3, num*3, num/3, num%3 FROM tmp14;
+------+--------+-------+-------+---------+-------+
| num | num+10 | num-3 | num*3 | num/3 | num%3 |
+------+--------+-------+-------+---------+-------+
| 64 | 74 | 61 | 192 | 21.3333 | 1 |
+------+--------+-------+-------+---------+-------+
MySQL 算术运算符
标签:sql -- val table 算术运算 ble style from tab