📜  sql server 中的临时表与变量表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:11.754000             🧑  作者: Mango

代码示例1
DECLARE @TableExample TABLE(some columns); --Table variable.

CREATE TABLE #TempTable(Ssome columns); --Temporal table.

Temp tables are a good choice if you're handling large data but if it's a small
data that you'll be handling, table variable are a great choice since they operate
on the ram(memory).