Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

temp table vs variable table in sql server

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).
 
PREVIOUS NEXT
Tagged: #temp #table #variable #table #sql #server
ADD COMMENT
Topic
Name
9+9 =