select insert new table sql server
SELECT *
INTO [new_BK]
FROM [old_table]
select insert new table sql server
SELECT *
INTO [new_BK]
FROM [old_table]
insert a select statement into a table
--format
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;
--examples
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;
insert select
INSERT INTO table2
SELECT * FROM table1
WHERE condition;
SELECT INTO
SELECT * INTO nome_da_tabela_que_estao_a_mexer_BKP
FROM nome_da_tabela_que_estao_a_mexer
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us