Table of ContentsPreviousNext

Ispirer             Ispirer


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

SUBSTRING

構文

SUBSTRING(expr, start, length)

SUBSTR は 文字列 string の start 位置から length 文字(バイト)分の部分文字列、バイナリ、テキスト式を返します。

この例では、名前の全ての文字を最初のカラムに、イニシャルのみを2番目のカラムに表示しています。

SELECT au_fname, SUBSTRING(au_fname, 1, 1)
FROM authors 
Here is the result set: 
au_fname
_____________________
Albert               A
Ann                  A
Anne                 A
Michael              M
Michel               M 

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

TABLE 96. 他DBの同等機能
IBM DB2
SUBSTR 関数
Oracle
SUBSTR 関数


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.