创建前可先删除 drop table tmp0 创建临时表 select * into temp table tmp0 from xxx create index idx_tmp0_inner_cd on tmp0(inner_cd); 查看临时表是否创建,返回0表示未创建,1为创建 select count(*) from pg_class where relname = 'tmp0' 或者用下面,下面语句在pg和mysql中都适用 Create Table If Not Exists tem…
本模块原网址:http://www.cnblogs.com/jeffwongishandsome/archive/2009/08/05/1526466.html 原作者:Jeff Wong 1.创建方法:方法一:create table TempTableName或select [字段1,字段2,...,] into TempTableName from table 方法二:create table tempdb.MyTempTable(Tid int)说明:(1).临时表其实是放在数据库tem…