{"url":"https://ajya.hatenablog.jp/entry/2013/09/06/125920","version":"1.0","title":"SQL\uff1aPostgreSQL\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3055\u308c\u305f\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u8abf\u3079\u308b\u65b9\u6cd5","image_url":null,"blog_title":"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u65e5\u5e38","type":"rich","categories":["PostgreSQL","SQL"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/AJYA/","author_name":"AJYA","height":"190","blog_url":"https://ajya.hatenablog.jp/","published":"2013-09-06 12:59:20","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2013%2F09%2F06%2F125920\" title=\"SQL\uff1aPostgreSQL\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3055\u308c\u305f\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u8abf\u3079\u308b\u65b9\u6cd5 - \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"2000\u4ef6\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u306e\u4e2d\u304b\u3089\u3001\u9577\u3044\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u305f\u884c\u3092\u51e6\u7406\u3057\u305f\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u8abf\u3079\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001SQL\u3067\u3067\u304d\u306a\u3044\u304b\u78ba\u8a8d\u3057\u305f\u3089\u3001PostgreSQL\u3067\u306f\u3001char_length()\u3068\u3044\u3046\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002 \u4f7f\u3044\u65b9 \u4f7f\u3044\u65b9\u306f\u7c21\u5358\u3067 SELECT char_length(string1) AS len1, * FROM test \u3068\u3059\u308c\u3070\u3001\u9577\u3055\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002 \u3082\u3046\u3061\u3087\u3063\u3068\u4fbf\u5229\u306b \u9577\u3044\u9806\u306b\u4e26\u3079\u66ff\u3048\u308b\u305f\u3081\u306b\u3001 SELECT char_length(string1) AS len1, * FROM test ORDER BY len1 DESC \u3068\u3059\u308b\u3068\u3001str\u2026"}