sql创建临时表查询

CREATE TEMPORARY TABLE tmp_table SELECT * FROM testscore -- 创建临时表
DROP TABLE tmp_table -- 删除临时表
TRUNCATE TABLE tmpTable -- 使用前先清空临时表。
SELECT * FROM tmp_table

 

posted @ 2017-09-01 16:51  風巽千龍  阅读(449)  评论(0)    收藏  举报