mysql> SELECT VERSION(), CURRENT_DATE;
+-----------+--------------+
| VERSION() | CURRENT_DATE |
+-----------+--------------+
| 8.0.19 | 2020-04-03 |
+-----------+--------------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT SIN(PI()/4), (4+1)*5;
+--------------------+---------+
| SIN(PI()/4) | (4+1)*5 |
+--------------------+---------+
| 0.7071067811865475 | 25 |
+--------------------+---------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT VERSION(); SELECT NOW();
+-----------+
| VERSION() |
+-----------+
| 8.0.19 |
+-----------+
1 row in set (0.00 sec)
+---------------------+
| NOW() |
+---------------------+
| 2020-04-03 17:45:42 |
+---------------------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT
-> USER()
-> ,
-> CURRENT_DATE;
+----------------+--------------+
| USER() | CURRENT_DATE |
+----------------+--------------+
| root@localhost | 2020-04-03 |
+----------------+--------------+
1 row in set (0.00 sec)
mysql>
mysql> SELECT USER() , CURRENT_DATE\c
mysql>
欢迎光临 JEE Study|JAVA EE|企业级开发学习网 (http://jeestudy.com/) | Powered by Discuz! X3.2 |