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)

 

posted @ 2019-02-15 12:29  生心无住  阅读(134)  评论(0编辑  收藏  举报