c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
SQL

How to copy/insert a table value from one table to another in sql server?

| | SQL

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