摘要:
1.AVG()用法:求平均值举例:mysql> select * from t1;+----+------+----------+---------+-------+-------+| id | name | password | test001 | test3 | test4 |+----+---... 阅读全文
摘要:
1.VERSION() 用法:返回MySQL服务器的版本 举例: mysql> select VERSION();
+-----------+
| VERSION() |
+-----------+
| 5.6.10 |
+-----------+
1 row in set (0.00 sec) 2.USER(),SYSTEM_USER() 用法:返回当前登录用户名 举例... 阅读全文
摘要:
1.NOW() 用法:显示当前日期和时间 举例: mysql> select NOW();
+---------------------+
| NOW() |
+---------------------+
| 2014-11-05 21:16:21 |
+---------------------+
1 row in set (0.04 sec) ... 阅读全文
摘要:
1.CEIL() 用法:向上取整 举例: mysql> select CEIL(3.5);
+-----------+
| CEIL(3.5) |
+-----------+
| 4 |
+-----------+
1 row in set (0.05 sec) mysql> select CEIL(3.1);
+-----------+
| CEIL(3.1) |
... 阅读全文