Table of ContentsPreviousNext

Ispirer             Ispirer


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

LENGTH

構文

LENGTH(expression)

LENGTH 関数は値の長さを返します。引数には組込みデータ型の値を返す式を指定することができます。

もし、引数が文字列である場合、関数は文字列の文字数を返します。固定長の文字列は空白を含みます。可変長の文字列の場合は、最大長でなく実際の長さになります。

Example

この例では会社名とそれぞれの社名の長さを返しています。

SELECT CompanyName, LENGTH(CompanyName)
FROM CUSTOMERS 
Here is the result set: 
CompanyName 
_________________ 
Consolidated Holdings        	21
Eastern Connection           	18
France restauration       	19
Great Lakes Food Market      	23
Island Trading 	14
Let's Stop N Shop 	17 

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

TABLE 78. 他のデータベースでの同等機能
Oracle
LENGTH 関数
Microsoft SQL Server
LEN 関数


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.