Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server insert into select

INSERT INTO sales.addresses (street, city, state, zip_code) 
SELECT
    street,
    city,
    state,
    zip_code
FROM
    sales.customers
ORDER BY
    first_name,
    last_name; 
Source by www.sqlservertutorial.net #
 
PREVIOUS NEXT
Tagged: #sql #server #insert #select
ADD COMMENT
Topic
Name
9+7 =