Quantcast Chèn nhiều dòng trên 1 câu lệnh SQL 2008

Chèn nhiều dòng trên 1 câu lệnh SQL 2008

by Neon Quach 17. September 2009 17:16

Chèn nhiều dòng trên 1 câu lênh SQL 2008 Nếu bạn cố gắng thực thi câu lệnh này trên sql 2005 thì sẻ báo lổi error syntaxt, thế như nếu bạn thử chạy câu lênh này trên sql 2008 thì thành công.

INSERT INTO [Northwind].[dbo].[Region] ([RegionID] ,[RegionDescription])

VALUES(5,'Mien Nam Viet Nam'),(6,'Mien Bac Viet Nam') GO

SELECT * FROM Region;

Tags:


Categories: sql

blog comments powered by Disqus

About me

I'm  currently employed as Software developer at devinition.com and also a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified Professional Developer (MCPD) in Net Framework 2.0 and 3.5: Web Applications and MCTS .NET Framework 3.5, ADO.NET Applications

Powered by BlogEngine.NET 2.5.0.5 - Eco Theme by n3o Web Designers