你对 Temporary Table(临时表)有什么理解?写一条创建临时表的查询。
What do you understand by a Temporary Table? Write a query to create a Temporary Table.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
分类: Database
标签: sql, temporary-table
参考答案摘要
答案 临时表用于存储并处理中间结果。临时表创建后,在不再使用时可以自动删除。它们在需要存储临时数据的场景中非常有用。 Syntax: CREATE TABLE #table_name(); 下面的查询将创建一个临时表: create table #book(b_id int, b_cost int) Now, we will insert the records. insert into #boo...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。