0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

数値を文字にキャストして、文字数を条件として、セレクトする(PostgreSQL)

Last updated at Posted at 2020-03-06

select * from テーブル名 where length(cast(列名 as text)) >= 999

length・・・文字列の文字数を取得
列名・・・キャストしたい列
as text ・・・定義によるので、charの場合も

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?