- Products -


Software


NEWS


Special



- Knowledge -


Category × Tag



- Like -

公開
作成日:2021/10/22
更新日:2022/3/4

【PostgreSQL】文字数をカウントする方法、length関数

・文字数順に並べたい時がある。そんな時はlength関数を使用する。

使い方



SELECT * FROM table ORDER BY length(target_column) DESC


参考


https://nobuneko.com/blog/archives/2016/02/postgresql_function_length_count_order_by.html


Category



Tag




関連記事


{{tmp.name}}

{{article.category}} {{article.title}}