sql server 2000 与 sql server 2005 的基本SQL语句上有不同吗?
来源:百度知道 编辑:UC知道 时间:2024/06/19 13:16:19
像查询,插入,删除等基本语句二者有不同的地方吗?
完全相同
联机有例子和说明
output--语法
如:
USE AdventureWorks;
GO
DECLARE @MyTableVar table( ScrapReasonID smallint,
Name varchar(50),
ModifiedDate datetime);
INSERT Production.ScrapReason
OUTPUT INSERTED.ScrapReasonID, INSERTED.Name, INSERTED.ModifiedDate
INTO @MyTableVar
VALUES (N'Operator error', GETDATE());
--Display the result set of the table variable.
SELECT ScrapReasonID, Name, ModifiedDate FROM @MyTableVar;
--Display the result set of the table.
SELECT ScrapReasonID, Name, ModifiedDate
FROM Production.ScrapReason;
支持
UPDATE TOP (10) HumanResources.Employee
up--->完全相同