Table of ContentsPreviousNext

Ispirer             Ispirer


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

ISNULL

構文

ISNULL(check_expr, replacement_value)

ISNULL は NULL を指定された置換値で置き換えます。この関数は check_expr がNULLでなければcheck_exprを返します。NULLの場合は replacement_value を返します。

この例では、全ての本の title および priceを選択しています。もし、該当するタイトルの price がNULLの場合、priceは0.00と表示されます。

SELECT title, ISNULL(price, 0.00) AS price
FROM titles 

他のデータベースでの同等機能

TABLE 92. 他DBの同等機能
IBM DB2
COALESCE 関数
Oracle
NVL 関数


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.