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)

猜你喜欢

转载自www.cnblogs.com/jason-dong/p/10383024.html
今日推荐