临时表存储在 sql server 中的什么位置? [英] Where Do Temporary Tables Get stored in sql server?

查看:102
本文介绍了临时表存储在 sql server 中的什么位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

临时表存储在数据库中的什么位置?如果临时表已经存在,我想删除它.我可以通过查询信息架构来为安全表执行此操作,但我不知道临时表的存储位置.

Where do temporary tables get stored in a database? I want to drop a temporary table if it already exists. I can do this for securable tables by querying at information schema but I don't know where temporary tables are stored.

推荐答案

临时表存储在 tempdb 数据库.此处概述了检查临时表是否存在的各种方法:检查临时表是否存在.

Temporary tables are stored in tempdb Database. There are various ways to check if a temp table exists outlined here: Check If Temporary Table Exists.

这篇关于临时表存储在 sql server 中的什么位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆