0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【学習メモ SQL LENGTH関数】

Posted at

LENGTH関数

LENGTH関数は文字列の長さを取得してくれる関数です。

使い方

LENGTH(文字列を表す列)→文字列の長さを表す数値

10文字以下だけのメモを取得したい場合
SELECT メモ,LENGTH(メモ)
AS メモの長さ
FROM 家計簿
WHERE LENGTH(メモ)<=10

私的に構文が覚えづらかったため記録用として残しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?