Create table using select query in SQL Server -


Is there a way to create a new table based on a SELECT query in SQL Server?

I do not want to enter all the fields manually (table query must be generated automatically based on the field).

I have already tried:

  create table new_table AS (select from ...);   

But this is not working.

I had to nick the column in the selection, but I suppose that saves your current query field surname If they do not have the name. Select Select from 'select' 'B' [Test]) from #tempabc and select from #tempabc.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -