sql---临时表
2016-04-26 10:59
417 查看
建立临时表并插入数据
更新临时表
删除临时表
select sector_id, phycellid as pci into temp from tbcell where sector_id in ( select distinct tbcell.sector_id from tbcell, tbcell38400 where tbcell.ENODEBID = substring(tbcell38400.SECTOR_ID, 1, 6) union select sector_id from step1all_38400 )
更新临时表
update temp set temp.pci = Step1_result_38400.pci from temp, Step1_result_38400 where temp.sector_id = Step1_result_38400.sector_id
删除临时表
drop table temp
相关文章推荐
- SSD和内存数据库技术
- postgresql体系结构(二):bin目录
- SQL Server 海量数据查询代码优化以及建议
- postgresql体系结构(一)
- django 模型model与数据库1
- redis配置详解
- redis 数据持久化
- MySQL的基础操作
- MYSQL 中binlog 参数的记录
- mysql-性能,命令-explain,show processlist,show
- Mongodb 3.2.1检查表是否为capped
- Postgresql 使用pg_upgrade升级(9.4.4~9.5.2)
- mysql 5.7.12 免安装版,windows 配置
- Redis+Spring缓存实例(windows环境,附实例源码及详解)
- Postgresql Automatic Vacuuming
- C#从文本文件中读取数据大批量导入数据库
- Redis 实现用户积分排行榜
- 查询SQL SEVER最近修改的存储过程及表
- redis.conf配置详细解析
- sql SERVER md5