mysql 基本操作 四

1.临时表

当绘画结束时,临时表会自动销毁,无法用show tables 查看 临时表。

MariaDB [jason]> create temporary table tmp(pro char(30),city char(30));
Query OK, 0 rows affected (0.01 sec)

MariaDB [jason]> insert into tmp values('shanghai','shanghai');
Query OK, 1 row affected (0.00 sec)

MariaDB [jason]> select * from tmp;
+----------+----------+
| pro      | city     |
+----------+----------+
| shanghai | shanghai |
+----------+----------+
1 row in set (0.00 sec)

MariaDB [jason]> drop table tmp;
Query OK, 0 rows affected (0.01 sec)

 

上一篇:tars框架安装


下一篇:MySQL性能优化