How to create a temporary table is similar to creating a normal table?
Example:
CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 datatype, .... );
3 , #. , . @, . "" (, ..), . ## , #, , .
#
@
##
:
declare @table table (id int) create table #table (id int) create table ##table (id int) select * into #table from xyz
, # ##:
CREATE TABLE #TemporaryTable -- Local temporary table ( Col1 int, Col2 varchar(10) .... ); CREATE TABLE ##GloablTemporaryTable -- Gloabl temporary table - note it starts with ##. ( Col1 int, Col2 varchar(10) .... );
# ##. - , - .- , .
Source: https://habr.com/ru/post/1673223/More articles:Python The closest coordinates in the dictionary are pythonHow to add constructor to type alias in Julia? - constructorHow to define a class that can store variable template arguments? - c ++How to open a link in chrome from cmd (Windows) without causing a chrome window in the foreground? - windowsОткрыть хром в окнах из командной строки в новом окне - windowsEdit existing pdf file in browser - javascriptTensorFlow weights increase when using the full dataset for gradient descent - pythonHow to create a new column by a variable? - rKeras-ImportError: cannot import name ctc_ops - kerasHow to upload documentation using Sphinx to a debian server subfolder - nginxAll Articles