avatar
补贴上次面试题# Database - 数据库
n*6
1
Question1: What are the two ways to create the temptable? Which is the best
practice?
My answer:
Option1:
CREATE TABLE ##TEMPTABLE
...
INSERT INTO ##TEMPTABLE
SELECT ...
FROM ...
Option2:
SELECT ...
INTO ##TEMPTABLE
FROM ...
WHERE ...
I do not know which is the best practice. I think both can check the ##
temptable in tempdb first for validation, and both can create index after
data insert.
avatar
j*n
2
Related questions:
The diff b/w local and global temp table? Accessibility? Life?
Where is the temp table stored?
What is table variable? Where is it stored?
What diff b/w temp table and table variable? which one is better?
avatar
B*g
3
全都忘了。我哭

【在 j*****n 的大作中提到】
: Related questions:
: The diff b/w local and global temp table? Accessibility? Life?
: Where is the temp table stored?
: What is table variable? Where is it stored?
: What diff b/w temp table and table variable? which one is better?

avatar
j*n
4
pat pat

【在 B*****g 的大作中提到】
: 全都忘了。我哭
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。