In this article, I describe How to copy or insert one table value to another table.This is achieved by a select statement. As here I am select top 10 rows from dbo.Employee table and insert into dbo.Employee_Test Table.
SELECT TOP10 * INTO DBO.EMPLOYEE_TEST FROM DBO.EMPLOYEE
After Execute this query, check dbo.Employee_Test table records using by
SELECT *FROM DBO.EMPLOYEE_TEST
The top 10 records are inserted into dbo.Employee_Test.
Note: dbo.Employee_Test have the same table structure like dbo.Employee
Post your comments / questions
Recent Article
- How to check PAN-Aadhaar is Linked or NOT?
- How to customize pagination for django admin?
- How to fix HAXM is not installed |in Android Studio
- How to fix CMOS Checksum Error in Computer or Laptop | SOLVED
- Reactivating windows after a Hardware change on PC or Laptop
- FIXED: Windows reported that the hardware of your device has changed. Error code :0xc004F211
- "redirect" is not defined pylance("reportUndefinedVariable)
- This action cannot be completed because the file is open in SQL Server(SQLEXPRESS) - FIXED
Related Article