How to create a new table from an existing table?

后端 未结 3 736
南笙
南笙 2021-01-25 10:49
dbo.Profile_Updated
  (
     BusinessName VARCHAR,
     ContactName  VARCHAR,
     Address      VARCHAR,
     City         VARCHAR,
     State        VARCHAR,
     Posta         


        
3条回答
  •  醉话见心
    2021-01-25 11:12

    Perhaps this will work:

    SELECT DISTINCT City, State, Postalcode
    INTO dbo.PostalDB
    FROM dbo.Profile_Updated
    

    The INTO clause will create a new table using the attributes from the source. The A little web searching will reveal many other possible solutions.

提交回复
热议问题