cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What does SELECT * INTO LOCAL TEMPORARY TABLE ... actually do?

Chris26
Participant
0 Kudos
3,678

The help doesn't really say much about this (just that this creates a table and populates it with the results of the query).
So the question here (and hopefully this will lead to an update of the help) is: how is the table created?

From some other posts and my own findings I found that (when just executing a simple SELECT * INTO LOCAL TEMPORARY TABLE #t1 FROM table1):
[NOT] NULL is applied to columns in the new table
Default values are not applied
Checks are not applied
No primary key is created
* select * from sa___describe_query('select * from #t1') can give more information on the new table

Any more information on this is appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos