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 hide the ID field from the Django admin?
- It is impossible to add a non nullable field without specifying a default. Django error
- ImportError: cannot import name 'url' from 'django.conf.urls' - Django Error
- How to Enable Virtualization in BIOS Security Settings in Intel Processors For Android Studio?
- Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.
- AttributeError: 'NoneType' object has no attribute 'get_text' - Python
- ModuleNotFoundError: No module named 'openpyxl' - Python
- How to get thumbnail from vimeo video URL in Python?
Related Article