Script for copy records with table structure into new table from other existing table without creating new table
SELECT a.*
INTO dbo.newTable
FROM dbo.oldTable a
Script for copy only records into new table from other existing table.Here new table must be create before executing this script.
INSERT INTO dbo.newTable
SELECT Name,Address,Phone,Email_address
FROM dbo.oldTable
About Me

-
Anil Desai.
Software Engineer
T M Technologies
જય વાળીનાથ - T-SQL is a basic of structure query language. So I always want to learn T-SQL in different way to get best performance in query. And its my passion.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment