Forum Discussion

YLM1603's avatar
YLM1603
New Member
1 year ago
Solved

How to convert a SQL view into a table?

Can I convert a SQL view into a table to perform the necessary transformations without having to update the data?
  • pankajnamekar25's avatar
    1 year ago

    Hello YLM1603 

     

    try this

    CREATE TABLE new_table AS

    SELECT * FROM your_view;

    Thanks,
     Pankaj Namekar | LinkedIn

    If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

  • Anonymous's avatar
    Anonymous
    1 year ago

    In SQL Server using TSQL :

     

    select *
    into <new_table>
    from <database>.<schema>.<view_name>