“SQL Insert Into Pilih Pernyataan” Kode Jawaban

Masukkan pernyataan pilih ke dalam tabel

--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;
Black Tailed Deer

SQL Server Insert ke 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; 
LeisureSuit Larry

SQL Insert Into Pilih Pernyataan

INSERT INTO OldCustomers
SELECT *
FROM Customers;
SAMER SAEID

Jawaban yang mirip dengan “SQL Insert Into Pilih Pernyataan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya