1.语法

create temporary table sp_output_tmp(name varchar(10) not null,passwd char(6) not null)

2.删除临时表

DROP TEMPORARY TABLE IF EXISTS sp_output_tmp;

3.注意

在同一个query语句中,你只能查找一次临时表。例如:下面的就不可用

mysql> SELECT * FROM temp_table, temp_table AS t2;

ERROR 1137: Can't reopen table: 'temp_table'

相关文章:

  • 2021-07-28
  • 2022-12-23
  • 2021-11-17
  • 2021-12-11
  • 2021-09-11
  • 2021-12-23
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案