Sqlserver
 sql >> Teknologi Basis Data >  >> RDS >> Sqlserver

Cara menyalin baris dari satu tabel SQL Server ke yang lain

Selama tidak ada kolom identitas Anda cukup

INSERT INTO TableNew
SELECT * FROM TableOld
WHERE [Conditions]


  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Kunci unik vs. indeks unik di SQL Server 2008

  2. Pemicu SQL Server:Pemicu DML

  3. SQL Server:pilih baris terbaru yang jumlahnya cocok dengan nilai

  4. SQL CASE dan variabel lokal

  5. Contoh Mengonversi 'tanggal' menjadi 'waktu-waktu' di SQL Server (T-SQL)