Table of ContentsPreviousNext

Ispirer             Ispirer


Ispirer SQLWays データベース移行ソフトウェア

Sybase Adaptive Server Anyware のTRIM を Microsoft SQL Serverへ変換

Sybase Adaptive Server Anyware のTRIM 関数は指定された文字列の先頭および末尾の空白を削除します。Microsoft SQL Server は TRIM 関数をサポートしていませんが、RTRIM および LTRIM 関数により先頭および末尾の空白を削除することができます。

SQLWays は Sybase Adaptive Server Anyware のTRIM 関数を下の変換例のように Microsoft SQL Serverの RTRIM と LTRIMに変換します。

TABLE 65. Sybase Adaptive Server Anyware のTRIM を Microsoft SQL Serverへの変換例
Sybase Adaptive Server Anyware
Microsoft SQL Server
create procedure asa_sp_trim ( )
begin
select trim (' hello ');
end;
create procedure asa_sp_trim AS
begin
select rtrim(ltrim(' hello '))
end


Table of ContentsPreviousNext
Ispirer             Ispirer
Copyright © 1999-2015 Ispirer Systems Ltd. Ispirer and SQLWays are trademarks of Ispirer Systems Ltd. All other product names may be trademarks of the respective companies. All rights reserved.