Table of ContentsPreviousNext

Ispirer             Ispirer


Ispirer SQLWays数据库迁移软件

Sybase ASA IFNULL到Microsoft SQL Server转换

Sybase Adaptive Server Anyware IFNULL功能退回二些表达式之一,取决于或指定的check表达式是NULL 或 NOT NULL。

Microsoft SQL Server不支持IFNULL。Microsoft SQL Server搜索 CASE表达式可以使用以执行Sybase Adaptive Server Anyware IFNULL功能。

SQLWays变化Sybase Adaptive Server Anyware IFNULL功能到Microsoft SQL Server搜索CASE表达式测验第一表达式为 NULL。

表格 69。 IFNULL有二些表达式转换的例如
Sybase Adaptive Server Anywhere
Microsoft SQL Server
create procedure asa_sp_ifnull (par int,
par2 int)
begin
declare res int;
SET res = IFNULL (par, par2);
end;
create procedure asa_sp_ifnull @par INT,@par2 INT
AS begin
declare @res INT
SET @res = CASE WHEN @par IS NULL THEN @par2 END
end

表格 70。 IFNULL 有三个表达式转换的例如
Sybase Adaptive Server Anywhere
Microsoft SQL Server
create procedure asa_sp_ifnull (par int,
par2 int, par3 int)
begin
declare res int;
SET res = IFNULL (par, par2, par3);
end;
create procedure asa_sp_ifnull @par INT,@par2 INT, @par3 INT
AS begin
declare @res INT
SET @res = CASE WHEN @par IS NULL THEN @par2 ELSE @par3 END
end


Table of ContentsPreviousNext
Ispirer             Ispirer
版权 © 1999-2015 Ispirer Systems Ltd. Ispirer和SQLWaysIspirer Systems Ltd的品牌。所有其他产品名称可能是其各自公司的商标。版权所有。