本篇内容介绍了“mysql参数实例用法”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
mysql> select *,now() from test.t123;
+----+------+------+---------------------+
| id | name | age | now() |
+----+------+------+---------------------+
| 1 | lxd | 29 | 2016-02-19 16:25:07 |
| 2 | lxd2 | 30 | 2016-02-19 16:25:07 |
| 3 | lxd3 | 40 | 2016-02-19 16:25:07 |
+----+------+------+---------------------+
3 rows in set (0.00 sec)
mysql> show variables like 'long_query_time';
+-----------------+----------+
| Variable_name | Value |
+-----------------+----------+
| long_query_time | 1.000000 |
+-----------------+----------+
1 row in set (0.00 sec)
mysql> select @@global.log_queries_not_using_indexes;
+----------------------------------------+
| @@global.log_queries_not_using_indexes |
+----------------------------------------+
| 1 |
+----------------------------------------+
1 row in set (0.00 sec)
mysql>
# Time: 160219 16:25:07
# User@Host: root[root] @ localhost [] Id: 4
# Query_time: 0.000242 Lock_time: 0.000128 Rows_sent: 3 Rows_examined: 3
SET timestamp=1455870307;
select *,now() from test.t123;
“mysql参数实例用法”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!